testColorWeijer.cpp 531 B

12345678910111213141516171819202122232425262728293031
  1. #include <fstream>
  2. #include <vislearning/nice.h>
  3. #include <iostream>
  4. #include "vislearning/features/localfeatures/LFColorWeijer.h"
  5. using namespace std;
  6. using namespace NICE;
  7. using namespace OBJREC;
  8. int main(int argc, char **argv)
  9. {
  10. if(argc < 1)
  11. {
  12. cerr << "Bitte Bild angeben" << endl;
  13. return -1;
  14. }
  15. Config *conf = new Config();
  16. LFColorWeijer lfc(conf);
  17. //! testen
  18. ColorImage cimg(argv[1]);
  19. ColorImage out;
  20. lfc.visualizeFeatures (cimg,out);
  21. cimg.writePPM("org.ppm");
  22. out.writePPM("out.ppm");
  23. return 0;
  24. }