|
#include "Bitmap.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include "Grid.h"
#include <algorithm>
#include <GfxTL/VectorXD.h>
#include <MiscLib/Performance.h>
Go to the source code of this file.
Functions | |
void | AssociateLabel (int a, int b, MiscLib::Vector< std::pair< int, size_t > > *labels) |
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) |
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) |
void | DilateCross (const MiscLib::Vector< char > &bitmap, size_t uextent, size_t vextent, bool uwrap, bool vwrap, MiscLib::Vector< char > *dilated) |
void | DilateSquare (const MiscLib::Vector< char > &bitmap, size_t uextent, size_t vextent, bool uwrap, bool vwrap, MiscLib::Vector< char > *dilated) |
void | ErodeCross (const MiscLib::Vector< char > &bitmap, size_t uextent, size_t vextent, bool uwrap, bool vwrap, MiscLib::Vector< char > *eroded) |
void | ErodeSquare (const MiscLib::Vector< char > &bitmap, size_t uextent, size_t vextent, bool uwrap, bool vwrap, MiscLib::Vector< char > *eroded) |
bool | IsEdge (const MiscLib::Vector< int > &componentImg, size_t uextent, size_t vextent, int label, bool uwrap, bool vwrap, int startx, int starty, int dirx, int diry, size_t *targetx, size_t *targety) |
int | Label (int n[], int size, int *curLabel, MiscLib::Vector< std::pair< int, size_t > > *labels) |
void | PreWrappedComponents (const MiscLib::Vector< char > &bitmap, size_t uextent, size_t vextent, MiscLib::Vector< int > *preWrappedComponentsImg, MiscLib::Vector< int > *relabelComponentsImg, const MiscLib::Vector< std::pair< int, size_t > > &inLabels, MiscLib::Vector< std::pair< int, size_t > > *labels) |
int | ReduceLabel (int a, const MiscLib::Vector< std::pair< int, size_t > > &labels) |
Variables | |
MiscLib::performance_t | totalTime_components |
void AssociateLabel | ( | int | a, |
int | b, | ||
MiscLib::Vector< std::pair< int, size_t > > * | labels | ||
) |
Definition at line 895 of file Bitmap.cpp.
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 at line 1000 of file Bitmap.cpp.
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 at line 649 of file Bitmap.cpp.
void DilateCross | ( | const MiscLib::Vector< char > & | bitmap, |
size_t | uextent, | ||
size_t | vextent, | ||
bool | uwrap, | ||
bool | vwrap, | ||
MiscLib::Vector< char > * | dilated | ||
) |
Definition at line 154 of file Bitmap.cpp.
void DilateSquare | ( | const MiscLib::Vector< char > & | bitmap, |
size_t | uextent, | ||
size_t | vextent, | ||
bool | uwrap, | ||
bool | vwrap, | ||
MiscLib::Vector< char > * | dilated | ||
) |
void ErodeCross | ( | const MiscLib::Vector< char > & | bitmap, |
size_t | uextent, | ||
size_t | vextent, | ||
bool | uwrap, | ||
bool | vwrap, | ||
MiscLib::Vector< char > * | eroded | ||
) |
void ErodeSquare | ( | const MiscLib::Vector< char > & | bitmap, |
size_t | uextent, | ||
size_t | vextent, | ||
bool | uwrap, | ||
bool | vwrap, | ||
MiscLib::Vector< char > * | eroded | ||
) |
bool IsEdge | ( | const MiscLib::Vector< int > & | componentImg, |
size_t | uextent, | ||
size_t | vextent, | ||
int | label, | ||
bool | uwrap, | ||
bool | vwrap, | ||
int | startx, | ||
int | starty, | ||
int | dirx, | ||
int | diry, | ||
size_t * | targetx, | ||
size_t * | targety | ||
) |
int Label | ( | int | n[], |
int | size, | ||
int * | curLabel, | ||
MiscLib::Vector< std::pair< int, size_t > > * | labels | ||
) |
Definition at line 856 of file Bitmap.cpp.
void PreWrappedComponents | ( | const MiscLib::Vector< char > & | bitmap, |
size_t | uextent, | ||
size_t | vextent, | ||
MiscLib::Vector< int > * | preWrappedComponentsImg, | ||
MiscLib::Vector< int > * | relabelComponentsImg, | ||
const MiscLib::Vector< std::pair< int, size_t > > & | inLabels, | ||
MiscLib::Vector< std::pair< int, size_t > > * | labels | ||
) |
int ReduceLabel | ( | int | a, |
const MiscLib::Vector< std::pair< int, size_t > > & | labels | ||
) |
Definition at line 921 of file Bitmap.cpp.
MiscLib::performance_t totalTime_components |