Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
gte::ImageUtility2 Class Reference

#include <GteImageUtility2.h>

Static Public Member Functions

static void Close (Image2< int > const &input, bool zeroExterior, int numNeighbors, std::array< int, 2 > const *neighbors, Image2< int > &output)
 
static void Close4 (Image2< int > const &input, bool zeroExterior, Image2< int > &output)
 
static void Close8 (Image2< int > const &input, bool zeroExterior, Image2< int > &output)
 
static void Dilate (Image2< int > const &input, int numNeighbors, std::array< int, 2 > const *neighbors, Image2< int > &output)
 
static void Dilate4 (Image2< int > const &input, Image2< int > &output)
 
static void Dilate8 (Image2< int > const &input, Image2< int > &output)
 
static void DrawCircle (int xCenter, int yCenter, int radius, bool solid, std::function< void(int, int)> const &callback)
 
static void DrawEllipse (int xCenter, int yCenter, int xExtent, int yExtent, std::function< void(int, int)> const &callback)
 
template<typename PixelType >
static void DrawFloodFill4 (int x, int y, int xSize, int ySize, PixelType foreColor, PixelType backColor, std::function< void(int, int, PixelType)> const &setCallback, std::function< PixelType(int, int)> const &getCallback)
 
static void DrawLine (int x0, int y0, int x1, int y1, std::function< void(int, int)> const &callback)
 
static void DrawRectangle (int xMin, int yMin, int xMax, int yMax, bool solid, std::function< void(int, int)> const &callback)
 
static void DrawThickPixel (int x, int y, int thick, std::function< void(int, int)> const &callback)
 
static void Erode (Image2< int > const &input, bool zeroExterior, int numNeighbors, std::array< int, 2 > const *neighbors, Image2< int > &output)
 
static void Erode4 (Image2< int > const &input, bool zeroExterior, Image2< int > &output)
 
static void Erode8 (Image2< int > const &input, bool zeroExterior, Image2< int > &output)
 
static bool ExtractBoundary (int x, int y, Image2< int > &image, std::vector< size_t > &boundary)
 
template<typename PixelType >
static void FloodFill4 (Image2< PixelType > &image, int x, int y, PixelType foreColor, PixelType backColor)
 
static void GetComponents4 (Image2< int > &image, std::vector< std::vector< size_t >> &components)
 
static void GetComponents8 (Image2< int > &image, std::vector< std::vector< size_t >> &components)
 
static void GetL1Distance (Image2< int > &image, int &maxDistance, int &xMax, int &yMax)
 
static void GetL2Distance (Image2< int > const &image, float &maxDistance, int &xMax, int &yMax, Image2< float > &transform)
 
static void GetSkeleton (Image2< int > &image)
 
static void Open (Image2< int > const &input, bool zeroExterior, int numNeighbors, std::array< int, 2 > const *neighbors, Image2< int > &output)
 
static void Open4 (Image2< int > const &input, bool zeroExterior, Image2< int > &output)
 
static void Open8 (Image2< int > const &input, bool zeroExterior, Image2< int > &output)
 

Static Private Member Functions

static bool ClearInteriorAdjacent (Image2< int > &image, int value)
 
static void GetComponents (int numNeighbors, int const *delta, Image2< int > &image, std::vector< std::vector< size_t >> &components)
 
static bool Interior2 (Image2< int > &image, int x, int y)
 
static bool Interior3 (Image2< int > &image, int x, int y)
 
static bool Interior4 (Image2< int > &image, int x, int y)
 
static bool IsArticulation (Image2< int > &image, int x, int y)
 
static void L2Check (int x, int y, int dx, int dy, Image2< int > &xNear, Image2< int > &yNear, Image2< int > &dist)
 
static bool MarkInterior (Image2< int > &image, int value, bool(*function)(Image2< int > &, int, int))
 

Static Private Attributes

static int const msArticulation [256]
 

Detailed Description

Definition at line 15 of file GteImageUtility2.h.

Member Function Documentation

bool ImageUtility2::ClearInteriorAdjacent ( Image2< int > &  image,
int  value 
)
staticprivate

Definition at line 1123 of file GteImageUtility2.cpp.

void ImageUtility2::Close ( Image2< int > const &  input,
bool  zeroExterior,
int  numNeighbors,
std::array< int, 2 > const *  neighbors,
Image2< int > &  output 
)
static

Definition at line 179 of file GteImageUtility2.cpp.

void ImageUtility2::Close4 ( Image2< int > const &  input,
bool  zeroExterior,
Image2< int > &  output 
)
static

Definition at line 163 of file GteImageUtility2.cpp.

void ImageUtility2::Close8 ( Image2< int > const &  input,
bool  zeroExterior,
Image2< int > &  output 
)
static

Definition at line 171 of file GteImageUtility2.cpp.

void ImageUtility2::Dilate ( Image2< int > const &  input,
int  numNeighbors,
std::array< int, 2 > const *  neighbors,
Image2< int > &  output 
)
static

Definition at line 44 of file GteImageUtility2.cpp.

void ImageUtility2::Dilate4 ( Image2< int > const &  input,
Image2< int > &  output 
)
static

Definition at line 30 of file GteImageUtility2.cpp.

void ImageUtility2::Dilate8 ( Image2< int > const &  input,
Image2< int > &  output 
)
static

Definition at line 37 of file GteImageUtility2.cpp.

void ImageUtility2::DrawCircle ( int  xCenter,
int  yCenter,
int  radius,
bool  solid,
std::function< void(int, int)> const &  callback 
)
static

Definition at line 762 of file GteImageUtility2.cpp.

void ImageUtility2::DrawEllipse ( int  xCenter,
int  yCenter,
int  xExtent,
int  yExtent,
std::function< void(int, int)> const &  callback 
)
static

Definition at line 859 of file GteImageUtility2.cpp.

template<typename PixelType >
void gte::ImageUtility2::DrawFloodFill4 ( int  x,
int  y,
int  xSize,
int  ySize,
PixelType  foreColor,
PixelType  backColor,
std::function< void(int, int, PixelType)> const &  setCallback,
std::function< PixelType(int, int)> const &  getCallback 
)
static

Definition at line 327 of file GteImageUtility2.h.

void ImageUtility2::DrawLine ( int  x0,
int  y0,
int  x1,
int  y1,
std::function< void(int, int)> const &  callback 
)
static

Definition at line 688 of file GteImageUtility2.cpp.

void ImageUtility2::DrawRectangle ( int  xMin,
int  yMin,
int  xMax,
int  yMax,
bool  solid,
std::function< void(int, int)> const &  callback 
)
static

Definition at line 829 of file GteImageUtility2.cpp.

void ImageUtility2::DrawThickPixel ( int  x,
int  y,
int  thick,
std::function< void(int, int)> const &  callback 
)
static

Definition at line 676 of file GteImageUtility2.cpp.

void ImageUtility2::Erode ( Image2< int > const &  input,
bool  zeroExterior,
int  numNeighbors,
std::array< int, 2 > const *  neighbors,
Image2< int > &  output 
)
static

Definition at line 94 of file GteImageUtility2.cpp.

void ImageUtility2::Erode4 ( Image2< int > const &  input,
bool  zeroExterior,
Image2< int > &  output 
)
static

Definition at line 78 of file GteImageUtility2.cpp.

void ImageUtility2::Erode8 ( Image2< int > const &  input,
bool  zeroExterior,
Image2< int > &  output 
)
static

Definition at line 86 of file GteImageUtility2.cpp.

bool ImageUtility2::ExtractBoundary ( int  x,
int  y,
Image2< int > &  image,
std::vector< size_t > &  boundary 
)
static

Definition at line 188 of file GteImageUtility2.cpp.

template<typename PixelType >
void gte::ImageUtility2::FloodFill4 ( Image2< PixelType > &  image,
int  x,
int  y,
PixelType  foreColor,
PixelType  backColor 
)
static

Definition at line 248 of file GteImageUtility2.h.

void ImageUtility2::GetComponents ( int  numNeighbors,
int const *  delta,
Image2< int > &  image,
std::vector< std::vector< size_t >> &  components 
)
staticprivate

Definition at line 925 of file GteImageUtility2.cpp.

void ImageUtility2::GetComponents4 ( Image2< int > &  image,
std::vector< std::vector< size_t >> &  components 
)
static

Definition at line 14 of file GteImageUtility2.cpp.

void ImageUtility2::GetComponents8 ( Image2< int > &  image,
std::vector< std::vector< size_t >> &  components 
)
static

Definition at line 22 of file GteImageUtility2.cpp.

void ImageUtility2::GetL1Distance ( Image2< int > &  image,
int maxDistance,
int xMax,
int yMax 
)
static

Definition at line 264 of file GteImageUtility2.cpp.

void ImageUtility2::GetL2Distance ( Image2< int > const &  image,
float &  maxDistance,
int xMax,
int yMax,
Image2< float > &  transform 
)
static

Definition at line 304 of file GteImageUtility2.cpp.

void ImageUtility2::GetSkeleton ( Image2< int > &  image)
static

Definition at line 559 of file GteImageUtility2.cpp.

bool ImageUtility2::Interior2 ( Image2< int > &  image,
int  x,
int  y 
)
staticprivate

Definition at line 1016 of file GteImageUtility2.cpp.

bool ImageUtility2::Interior3 ( Image2< int > &  image,
int  x,
int  y 
)
staticprivate

Definition at line 1025 of file GteImageUtility2.cpp.

bool ImageUtility2::Interior4 ( Image2< int > &  image,
int  x,
int  y 
)
staticprivate

Definition at line 1047 of file GteImageUtility2.cpp.

bool ImageUtility2::IsArticulation ( Image2< int > &  image,
int  x,
int  y 
)
staticprivate

Definition at line 1082 of file GteImageUtility2.cpp.

void ImageUtility2::L2Check ( int  x,
int  y,
int  dx,
int  dy,
Image2< int > &  xNear,
Image2< int > &  yNear,
Image2< int > &  dist 
)
staticprivate

Definition at line 993 of file GteImageUtility2.cpp.

bool ImageUtility2::MarkInterior ( Image2< int > &  image,
int  value,
bool(*)(Image2< int > &, int, int function 
)
staticprivate

Definition at line 1055 of file GteImageUtility2.cpp.

void ImageUtility2::Open ( Image2< int > const &  input,
bool  zeroExterior,
int  numNeighbors,
std::array< int, 2 > const *  neighbors,
Image2< int > &  output 
)
static

Definition at line 154 of file GteImageUtility2.cpp.

void ImageUtility2::Open4 ( Image2< int > const &  input,
bool  zeroExterior,
Image2< int > &  output 
)
static

Definition at line 138 of file GteImageUtility2.cpp.

void ImageUtility2::Open8 ( Image2< int > const &  input,
bool  zeroExterior,
Image2< int > &  output 
)
static

Definition at line 146 of file GteImageUtility2.cpp.

Member Data Documentation

int const ImageUtility2::msArticulation
staticprivate
Initial value:
=
{
0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,
0,1,1,1,1,1,1,1,0,1,0,0,0,1,0,0,
0,1,1,1,1,1,1,1,0,1,0,0,0,1,0,0,
0,1,1,1,1,1,1,1,0,1,0,0,0,1,0,0,
0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
0,1,1,1,1,1,1,1,0,1,0,0,0,1,0,0,
0,1,1,1,1,1,1,1,0,1,0,0,0,1,0,0,
0,0,0,0,1,1,0,0,1,1,0,0,1,1,0,0,
1,1,1,1,1,1,1,1,1,1,0,0,1,1,0,0,
0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,1,1,0,0,1,1,0,0,1,1,0,0,
1,1,1,1,1,1,1,1,1,1,0,0,1,1,0,0,
0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0
}

Definition at line 243 of file GteImageUtility2.h.


The documentation for this class was generated from the following files:


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06