graphics - How to extract the branch structure and the foliage from a tree image -
i working on problem need extract visible branching structure , foliage tree separately. suggested technique automatic or semi supervised(where user draws few strokes in segmentation). know how can implemented tools or techniques or language convenient accomplishing task.
not answer necessarily, fit in comment. messed around picture of tree few minutes.
here's original image:
i tried getting difference between g , rb highlight greener areas using (in matlab):
green_diff = 2*image(:,:,2) - (image(:,:,1)+image(:,:,3)); figure, imshow(green_diff)
i tried looking @ h channel in hsv color space.
htest = rgb2hsv(image); htest(:,:,2:3) = 1; figure, imshow(hsv2rgb(test))
you don't need convert rgb—it's cooler @ way.
i don't have ideas branches right now. thing comes mind trying take advantage of fact branches connected leaves, , branches exhibit tree-like shape (surprising, know).
Comments
Post a Comment