I’d like to know more about question 2 from @mongoose54. I have a method that is looking at the skeleton of a fruit. Sometimes the fruit is bumpy or the segmentation of the fruit from the backgroud is rough. This leaves me with a skeleton with little branches sometimes. What I really want is just the longest skeleton.
When I use the analyze skeleton plugin it is able to find it, but I can’t figure out how to isolate it. It appears to be a selection, but I can’t use it. Also, in the examples I’ve played with, where the branch connects to the main skeleton the “selection” has a gap in it where the main node is. Also the tips are white as well.
If I have a skeleton like this:
I run skeletonize and I get this:
It has one side branch (I need this to handle more, but it’s an effective example).
How can I use the Analyze plugin to isolate the pixels of the longest skeleton? If I can do this then I can get rid of a lot of error handling code and reduce the amount of blurring and erode/dilate I do to smooth the fruit prior to skeletonization. This is important because it’s affecting the shape of the fruit, particularly the ends which I’m interested in measuring for shape characteristics.