00001 #include "Component/ModelManager.H" 00002 #include "Image/Image.H" 00003 #include "Image/Pixels.H" 00004 #include "Media/FrameSeries.H" 00005 #include "SIFT/LoweSIFT.H" 00006 #include "Raster/Raster.H" 00007 #include "Raster/GenericFrame.H" 00008 00009 int main(const int argc, const char **argv) 00010 { 00011 ModelManager mgr("Test LoweSIFT"); 00012 00013 00014 nub::ref<LoweSIFT> sift(new LoweSIFT(mgr)); 00015 mgr.addSubComponent(sift); 00016 00017 if(mgr.parseCommandLine(argc, argv, "Filename", 1, 1) == false) return 0; 00018 00019 mgr.start(); 00020 00021 Image<PixRGB<byte> > img = Raster::ReadFrame(mgr.getExtraArg(0)).asRgb(); 00022 00023 sift->computeVO(img); 00024 }