Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __MINI_PATCH_H
00012 #define __MINI_PATCH_H
00013
00014 #include <cvd/image.h>
00015 #include <cvd/byte.h>
00016 #include <cvd/utility.h>
00017 #include <TooN/TooN.h>
00018 using namespace TooN;
00019 #include <vector>
00020
00021 struct MiniPatch
00022 {
00023 void SampleFromImage(CVD::ImageRef irPos, CVD::BasicImage<CVD::byte> &im);
00024 bool FindPatch(CVD::ImageRef &irPos,
00025 CVD::BasicImage<CVD::byte> &im,
00026 int nRange,
00027 std::vector<CVD::ImageRef> &vCorners,
00028 std::vector<int> *pvRowLUT = NULL);
00029
00030 inline int SSDAtPoint(CVD::BasicImage<CVD::byte> &im, const CVD::ImageRef &ir);
00031 static int mnHalfPatchSize;
00032 static int mnRange;
00033 static int mnMaxSSD;
00034 CVD::Image<CVD::byte> mimOrigPatch;
00035 };
00036
00037 #endif