Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skeletonization in opencv

Tags:

opencv

Is there any specific function that can be used in opencv for skeletonization? Besides, i searched for some time and want to know if opencv implements voronoi-skeleton (seems like there is but is it really are)?

like image 766
Mzk Avatar asked Sep 19 '12 05:09

Mzk


People also ask

How do you Skeletonize an image in Python?

skeletonize [Zha84] works by making successive passes of the image, removing pixels on object borders. This continues until no more pixels can be removed. The image is correlated with a mask that assigns each pixel a number in the range [0… 255] corresponding to each possible pattern of its 8 neighbouring pixels.

What is thinning or Skeletonization algorithm?

A technique called distance-ordered homotopic thinning (DOHT) for skeletonizing 3D binary images is presented. DOHT produces skeletons that are homotopic, thin, and medial. This is achieved by sequentially deleting points in ascending distance order until no more can be safely deleted.

How do you Binarize an image in Python?

Binarization of Images Binarization is of the image is converting a grayscale image into a black and white image (i.e. 0 and 255 pixels respectively). This can be achieved with the help of a process called thresholding. So, with the help of thresholding, we can get binary images.

What is pixel in OpenCV?

Figure 5: In OpenCV, pixels are accessed by their (x, y)-coordinates. The origin, (0, 0), is located at the top-left of the image. OpenCV images are zero-indexed, where the x-values go left-to-right (column number) and y-values go top-to-bottom (row number).


1 Answers

It looks like Voronoi-Skeleton is implemented in the _cvConstructSkeleton() and _cvLee() functions in opencv/src/cvaux/cvlee.cpp.

I haven't seen any official documentation about how to use this functionality in OpenCV. Since cvlee.cpp is in the cvaux folder, I think these may be experimental OpenCV functions.

like image 55
solvingPuzzles Avatar answered Oct 05 '22 17:10

solvingPuzzles