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:

enter image description here

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) 

enter image description here

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.

enter image description here

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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -