KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dual_lattice.h
Go to the documentation of this file.
1 // dual_lattice.h - building the dual lattice for later building sparse mat
3 // Author: Doron Tal
4 // Date Created: May, 2000
5 
6 #ifndef _DUAL_LATTICE_H
7 #define _DUAL_LATTICE_H
8 
9 #include "wrap_dtlib_cpp/img.h"
10 
11 namespace DTLib {
12 
13  // NOTE: a non-zero pixel in InDualHImg at position (x0, y0) represents
14  // the edge between pixel (x0, y0) in the original image and its
15  // neighboring pixel to the right (x0+1, y0), similarly a non-zero
16  // pixel position (x0, y0) in DualVImg represents an edge in the
17  // original image between pixel (x0, y0) and it's neighbor one pixel
18  // below, at (x0, y0+1).
19 
20  void MakeDualLattice(const float& EdgelLength,
21  const float& SigmaIC,
22  const int& nGaussScales,
23  CImgVec<BYTE>& InNMSVec,
24  CImgVec<float>& InEnergyVec,
25  CImgVec<float>& InOriVec,
26  CImgVec<float>& InXLocVec,
27  CImgVec<float>& InYLocVec,
28  CImg<float>& InPTextureImg,
29  CImg<float>& OutDualHImg,
30  CImg<float>& OutDualVImg);
31 
32 } // namespace DTLib {
33 
34 #endif /* #ifndef _DUAL_LATTICE_H */
void MakeDualLattice(const float &EdgelLength, const float &SigmaIC, const int &nGaussScales, CImgVec< BYTE > &InNMSVec, CImgVec< float > &InEnergyVec, CImgVec< float > &InOriVec, CImgVec< float > &InXLocVec, CImgVec< float > &InYLocVec, CImg< float > &InPTextureImg, CImg< float > &OutDualHImg, CImg< float > &OutDualVImg)
Definition: dual_lattice.cpp:22