5 #ifndef _CONTOURFOLLOWER_ 6 #define _CONTOURFOLLOWER_ 16 typedef Point* PointPtr;
48 float fourierDescriptors[15],
74 void GetFirstPixel (
kkint32& row,
78 void GetNextPixel (
kkint32& row,
90 uchar backgroundPixelTH;
kkint32 FollowContour2(float *countourFreq, bool &successful)
std::vector< ComplexDouble > CreateFourierFromPointList(const PointList &points)
A class that is used by to represent a single image in memory.
kkint32 CreateFourierDescriptorBySampling(kkint32 numOfBuckets, float *countourFreq, bool &successful)
Used by Raster class and MorphOp derived classes to denote a single pixel location in Raster image...
std::complex< double > ComplexDouble
unsigned char uchar
Unsigned character.
void HistogramDistanceFromAPointOfEdge(float pointRow, float pointCol, kkint32 numOfBuckets, kkint32 *buckets, float &minDistance, float &maxDistance, kkint32 &numOfEdgePixels)
ContourFollower(Raster &_raster, RunLog &_log)
Used for logging messages.
Container object used to maintaining a list of pixel locations.
kkint32 FollowContour(float *countourFreq, float fourierDescriptors[15], kkint32 totalPixels, bool &successful)
PointListPtr GenerateContourList()
PointListPtr CreatePointListFromFourier(std::vector< ComplexDouble > fourier, PointList &origPointList)