Bitmap.cpp File Reference
#include "Bitmap.h"
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include "Grid.h"
#include <GfxTL/VectorXD.h>
#include <MiscLib/Performance.h>
+ Include dependency graph for Bitmap.cpp:

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
 

Function Documentation

◆ AssociateLabel()

void AssociateLabel ( int a,
int b,
MiscLib::Vector< std::pair< int, size_t > > * labels )

Definition at line 840 of file Bitmap.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ComponentLoops()

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 961 of file Bitmap.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Components()

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 596 of file Bitmap.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DilateCross()

void DilateCross ( const MiscLib::Vector< char > & bitmap,
size_t uextent,
size_t vextent,
bool uwrap,
bool vwrap,
MiscLib::Vector< char > * dilated )

Definition at line 144 of file Bitmap.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DilateSquare()

void DilateSquare ( const MiscLib::Vector< char > & bitmap,
size_t uextent,
size_t vextent,
bool uwrap,
bool vwrap,
MiscLib::Vector< char > * dilated )

Definition at line 16 of file Bitmap.cpp.

+ Here is the call graph for this function:

◆ ErodeCross()

void ErodeCross ( const MiscLib::Vector< char > & bitmap,
size_t uextent,
size_t vextent,
bool uwrap,
bool vwrap,
MiscLib::Vector< char > * eroded )

Definition at line 425 of file Bitmap.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ErodeSquare()

void ErodeSquare ( const MiscLib::Vector< char > & bitmap,
size_t uextent,
size_t vextent,
bool uwrap,
bool vwrap,
MiscLib::Vector< char > * eroded )

Definition at line 247 of file Bitmap.cpp.

+ Here is the call graph for this function:

◆ IsEdge()

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 )

Definition at line 876 of file Bitmap.cpp.

+ Here is the caller graph for this function:

◆ Label()

int Label ( int n[],
int size,
int * curLabel,
MiscLib::Vector< std::pair< int, size_t > > * labels )

Definition at line 801 of file Bitmap.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PreWrappedComponents()

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 )

Definition at line 527 of file Bitmap.cpp.

+ Here is the call graph for this function:

◆ ReduceLabel()

int ReduceLabel ( int a,
const MiscLib::Vector< std::pair< int, size_t > > & labels )

Definition at line 866 of file Bitmap.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ totalTime_components

MiscLib::performance_t totalTime_components
extern