Bitmap.cpp File Reference
#include "Bitmap.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include "Grid.h"
#include <algorithm>
#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 895 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 1000 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 649 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 154 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 13 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 465 of file Bitmap.cpp.

+ 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 268 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 931 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 856 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 579 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 921 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