minipatch.h

来自「this is software for visual SLAM」· C头文件 代码 · 共 37 行

H
37
字号
// -*- c++ -*-// Copyright 2008 Isis Innovation Limited//// MiniPatch.h//// Declares MiniPatch class// // This is a simple pixel-patch class, used for tracking small patches// it's used by the tracker for building the initial map#ifndef __MINI_PATCH_H#define __MINI_PATCH_H#include <cvd/image.h>#include <cvd/byte.h>#include <cvd/utility.h>#include <TooN/numerics.h>#include <vector>struct MiniPatch{  void SampleFromImage(CVD::ImageRef irPos, CVD::BasicImage<CVD::byte> &im);  // Copy pixels out of source image  bool FindPatch(CVD::ImageRef &irPos,           // Find patch in a new image		 CVD::BasicImage<CVD::byte> &im, 		 int nRange,		 std::vector<CVD::ImageRef> &vCorners,		 std::vector<int> *pvRowLUT = NULL);    inline int SSDAtPoint(CVD::BasicImage<CVD::byte> &im, const CVD::ImageRef &ir); // Score function  static int mnHalfPatchSize;     // How big is the patch?  static int mnRange;             // How far to search?   static int mnMaxSSD;            // Max SSD for matches?  CVD::Image<CVD::byte> mimOrigPatch;  // Original pixels};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?