Bitmap.h
Go to the documentation of this file.
1 #ifndef BITMAP_HEADER
2 #define BITMAP_HEADER
3 #include <MiscLib/Vector.h>
4 #include <utility>
5 #include <GfxTL/VectorXD.h>
6 #include <MiscLib/Vector.h>
7 
8 #ifndef DLL_LINKAGE
9 #define DLL_LINKAGE
10 #endif
11 
12 DLL_LINKAGE void DilateSquare(const MiscLib::Vector< char >& bitmap, size_t uextent,
13  size_t vextent, bool uwrap, bool vwrap,
14  MiscLib::Vector< char >* dilated);
15 DLL_LINKAGE void DilateCross(const MiscLib::Vector< char >& bitmap, size_t uextent,
16  size_t vextent, bool uwrap, bool vwrap,
17  MiscLib::Vector< char >* dilated);
18 DLL_LINKAGE void ErodeSquare(const MiscLib::Vector< char >& bitmap, size_t uextent,
19  size_t vextent, bool uwrap, bool vwrap,
20  MiscLib::Vector< char >* eroded);
21 DLL_LINKAGE void ErodeCross(const MiscLib::Vector< char >& bitmap, size_t uextent,
22  size_t vextent, bool uwrap, bool vwrap,
23  MiscLib::Vector< char >* eroded);
24 DLL_LINKAGE void Components(const MiscLib::Vector< char >& bitmap, size_t uextent,
25  size_t vextent, bool uwrap, bool vwrap,
26  MiscLib::Vector< int >* componentsImg,
27  MiscLib::Vector< std::pair< int, size_t > >* labels);
28 DLL_LINKAGE void PreWrappedComponents(const MiscLib::Vector< char >& bitmap, size_t uextent,
29  size_t vextent, MiscLib::Vector< int >* componentsImg,
30  MiscLib::Vector< int >* relabelComponentsImg,
31  const MiscLib::Vector< std::pair< int, size_t > >& inLabels,
32  MiscLib::Vector< std::pair< int, size_t > >* labels);
33 DLL_LINKAGE int Label(int n[], int size, int* curLabel,
34  MiscLib::Vector< std::pair< int, size_t > >* labels);
35 DLL_LINKAGE void AssociateLabel(int a, int b,
36  MiscLib::Vector< std::pair< int, size_t > >* labels);
38  std::pair< int, size_t > > &labels);
39 // finds the loops around a connected component as polygons
40 DLL_LINKAGE void ComponentLoops(const MiscLib::Vector< int >& componentImg, size_t uextent,
41  size_t vextent, int label, bool uwrap, bool vwrap,
43 
44 #endif
GfxTL::VectorXD
Definition: MatrixXX.h:21
AssociateLabel
DLL_LINKAGE void AssociateLabel(int a, int b, MiscLib::Vector< std::pair< int, size_t > > *labels)
Definition: Bitmap.cpp:895
Vector.h
ErodeSquare
DLL_LINKAGE void ErodeSquare(const MiscLib::Vector< char > &bitmap, size_t uextent, size_t vextent, bool uwrap, bool vwrap, MiscLib::Vector< char > *eroded)
Definition: Bitmap.cpp:268
Label
DLL_LINKAGE int Label(int n[], int size, int *curLabel, MiscLib::Vector< std::pair< int, size_t > > *labels)
Definition: Bitmap.cpp:856
ReduceLabel
DLL_LINKAGE int ReduceLabel(int a, const MiscLib::Vector< std::pair< int, size_t > > &labels)
Definition: Bitmap.cpp:921
ErodeCross
DLL_LINKAGE void ErodeCross(const MiscLib::Vector< char > &bitmap, size_t uextent, size_t vextent, bool uwrap, bool vwrap, MiscLib::Vector< char > *eroded)
Definition: Bitmap.cpp:465
ComponentLoops
DLL_LINKAGE void ComponentLoops(const MiscLib::Vector< int > &componentImg, size_t uextent, size_t vextent, int label, bool uwrap, bool vwrap, MiscLib::Vector< MiscLib::Vector< GfxTL::VectorXD< 2, size_t > > > *polys)
Definition: Bitmap.cpp:1000
MiscLib::Vector< char >
VectorXD.h
armarx::ctrlutil::a
double a(double t, double a0, double j)
Definition: CtrlUtil.h:45
DilateSquare
DLL_LINKAGE void DilateSquare(const MiscLib::Vector< char > &bitmap, size_t uextent, size_t vextent, bool uwrap, bool vwrap, MiscLib::Vector< char > *dilated)
Definition: Bitmap.cpp:13
DLL_LINKAGE
#define DLL_LINKAGE
Definition: Bitmap.h:9
Components
DLL_LINKAGE void Components(const MiscLib::Vector< char > &bitmap, size_t uextent, size_t vextent, bool uwrap, bool vwrap, MiscLib::Vector< int > *componentsImg, MiscLib::Vector< std::pair< int, size_t > > *labels)
Definition: Bitmap.cpp:649
PreWrappedComponents
DLL_LINKAGE void PreWrappedComponents(const MiscLib::Vector< char > &bitmap, size_t uextent, size_t vextent, MiscLib::Vector< int > *componentsImg, MiscLib::Vector< int > *relabelComponentsImg, const MiscLib::Vector< std::pair< int, size_t > > &inLabels, MiscLib::Vector< std::pair< int, size_t > > *labels)
Definition: Bitmap.cpp:579
DilateCross
DLL_LINKAGE void DilateCross(const MiscLib::Vector< char > &bitmap, size_t uextent, size_t vextent, bool uwrap, bool vwrap, MiscLib::Vector< char > *dilated)
Definition: Bitmap.cpp:154