I would like to know of something that will detect all the green branches from the following image
Currently i am starting with applying the Frangi filter
options=struct('FrangiScaleRange', [5 5], 'FrangiScaleRatio', 1, 'FrangiBetaOne', 1,...
'FrangiBetaTwo', 7, 'verbose',true,'BlackWhite',true);
[outIm,whatScale,Direction] = FrangiFilter2D(double(img), options);
The output of Frangi filter is as follows
This is followed by Hough Transform to detect all the lines
[H,theta,rho] = hough(outIm,'Theta',-90:1:89);
P = houghpeaks(H,100,'threshold',ceil(0.3*max(H(:))),'NhoodSize',[21 21]);
lines = houghlines(outIm,theta,rho,P,'FillGap',10,'MinLength',100);
The output is this
Any leads on what i can try apart from these techniques ?
'BlackWhite',false
here might help. – Dymoke