CV_DistanceTransformfunction to calculate distance to closest zero pixels for each pixelCalling Sequence
dst = CV_DistanceTransform(srcimg,distance_type,mask_size)
Parameterssrcimg : Source 8-bit single-channel image.distance_type : Type of distance. It can be CV_DIST_L1, CV_DIST_L2 , or CV_DIST_Cmask_size : Size of the distance transform maskDescription
This function can be used to calculate distance to closest zero pixel for each pixel of the source image. Output is 32 bit floatingpoint, single channel image of the same size as that of source image.
This is curretly dummy function. It provides no functionality but is required
for providing support for generating C code for OpenCV
ExamplesSee alsoCV_CreateImage CV_CvtColorAuthorsSiddhesh Wani