#include <polygon_extraction.h>
Public Member Functions | |
template<typename TPoint , typename TPolygon > | |
void | outline (const int w, const int h, std::vector< TPoint > out, TPolygon &poly) |
PolygonExtraction () | |
void | ppm (const char *fn, const int w, const int h, const int *ch) |
virtual | ~PolygonExtraction () |
Private Member Functions | |
bool | hasMultiplePositions (unsigned int i) |
Static Private Member Functions | |
template<typename TPoint > | |
static int | getPos (int *ch, const int xx, const int yy, const int w, const int h) |
remember size for var. above | |
Private Attributes | |
int * | ch_ |
size_t | ch_size_ |
bool * | outline_check_ |
size_t | outline_check_size_ |
needed for outline, no need to reallocate every time |
Definition at line 82 of file polygon_extraction.h.
Definition at line 71 of file polygon_extraction.cpp.
virtual cob_3d_segmentation::PolygonExtraction::~PolygonExtraction | ( | ) | [inline, virtual] |
Definition at line 97 of file polygon_extraction.h.
int cob_3d_segmentation::PolygonExtraction::getPos | ( | int * | ch, |
const int | xx, | ||
const int | yy, | ||
const int | w, | ||
const int | h | ||
) | [static, private] |
remember size for var. above
Definition at line 81 of file polygon_extraction.cpp.
bool cob_3d_segmentation::PolygonExtraction::hasMultiplePositions | ( | unsigned int | i | ) | [inline, private] |
Definition at line 92 of file polygon_extraction.h.
void cob_3d_segmentation::PolygonExtraction::outline | ( | const int | w, |
const int | h, | ||
std::vector< TPoint > | out, | ||
TPolygon & | poly | ||
) |
Definition at line 96 of file polygon_extraction.cpp.
void cob_3d_segmentation::PolygonExtraction::ppm | ( | const char * | fn, |
const int | w, | ||
const int | h, | ||
const int * | ch | ||
) |
Definition at line 225 of file polygon_extraction.cpp.
int* cob_3d_segmentation::PolygonExtraction::ch_ [private] |
Definition at line 84 of file polygon_extraction.h.
size_t cob_3d_segmentation::PolygonExtraction::ch_size_ [private] |
Definition at line 85 of file polygon_extraction.h.
bool* cob_3d_segmentation::PolygonExtraction::outline_check_ [private] |
Definition at line 86 of file polygon_extraction.h.
size_t cob_3d_segmentation::PolygonExtraction::outline_check_size_ [private] |
needed for outline, no need to reallocate every time
Definition at line 87 of file polygon_extraction.h.