zxhproj v 2.2
zxhproj
|
zxhEdgeCanny.cpp return canny edge contour points image, no gaussian filter is applied here More...
#include <zxhMultiCannyEdge.h>
Public Member Functions | |
virtual bool | Evaluate () |
run algorithm to compute the edge image, return whether success | |
virtual void | SetSurfacBaseImage (zxhImageData *p) |
need to be same size/spacing with result EdgeImage | |
virtual void | SetAtlasBaseImage (zxhImageData *p) |
need to be same size/spacing with result EdgeImage | |
virtual void | SetBluredImage (zxhImageData *p) |
highly blured image for computing the NV | |
virtual void | SetNumberMultiPartialEdgeImages (int i) |
virtual void | SetMultiPartialEdgeImages (zxhImageData **p) |
all the canny edge image input should be same size/spacing with the m_pSurfaceBase image | |
virtual zxhImageDataT< float > * | GetDisplaceVectorFromSurface () |
virtual zxhImageDataT< float > * | GetDisplaceVectorFromCorrect () |
virtual void | SetSearchingRange (float r) |
virtual void | SetSearchStepLength (float l) |
virtual void | SetMaskImage (zxhImageData *p) |
mask image for search edge points | |
virtual void | SetEdgePointGrayRange (float f, float t) |
virtual void | SetMaintainTimes (int it) |
virtual void | SetMaintainNeighbour (float f) |
virtual void | SetMaintainAccuracy (float f) |
virtual long int | SearchMultiCannyEdges (float fSearchRange, float fSearchStepLength, zxhImageData *pMask, float aGrayRange[2]) |
1. search | |
virtual long int | SmoothBoundary (int nMainTimes, float fNeighbour, float fAccuracy) |
2. smooth using average | |
virtual long int | RemovingJaggedShape (int nMainTimes, float fNeighbour, float fAccuracy) |
2.1 Removing dentation/jagged shape points ( far points ) | |
virtual long int | FillingJaggedShape (int nMainTimes, float fNeighbour, float fAccuracy) |
2.2 Filling removed dentation/jagged shape points (missing points) | |
Static Public Attributes | |
static const int | EdgePoint = ZXH_Foreground |
static const int | FoundEdge = -ZXH_Foreground |
static const int | InactivateGrayRange = -ZXH_Foreground |
Protected Attributes | |
zxhImageData * | m_pSurfaceBase |
zxhImageData * | m_pAtlasBase |
zxhImageData * | m_pImageBlur |
highly blured image for computing the NV | |
int | m_nPartialEdges |
zxhImageData ** | m_pPartialEdges |
all the canny edge image input should be same size/spacing with the m_pSurfaceBase image | |
zxhImageDataT< float > | m_aDVsurf [3] |
zxhImageDataT< float > | m_aDVcor [3] |
float | m_fSearchRange |
float | m_fSearchStepLength |
zxhImageData * | m_pMaskImage |
mask image for search edge points | |
float | m_afGrayRange [2] |
int | m_iMainTimes |
float | m_fNeighbour |
float | m_fAccuracy |
zxhEdgeCanny.cpp return canny edge contour points image, no gaussian filter is applied here
long int zxhMultiCannyEdge::SmoothBoundary | ( | int | nMainTimes, |
float | fNeighbour, | ||
float | fAccuracy | ||
) | [virtual] |
2. smooth using average
. Smooth boundary For each candidate correct point If |Candidate correct point ¨C d-mm neighbour points average candidate point| > fAccuracy or no corresponding candidate Correct point = d-mm neighbour points average candidate point DV Else Accepted