![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172418/image.png)
how to get segmentation results without graph cut?
1 次查看(过去 30 天)
显示 更早的评论
Hi, i am not expert in matlab. following is the code and error that i am sharing. in the code i am getting segmentation results using graph cut. but i do not want to use graph cut for segmentation. is it possible? and how to do segmentation without graph cut? thanks
%% segmentation Dc = reshape((log(p+eps))',[sz(1) sz(2) no_classes]); Sc = ones(no_classes) - eye(no_classes);
% Expantion Algorithm
gch = GraphCut('open', -Dc, beta*Sc);
[gch seg] = GraphCut('expand',gch);
gch = GraphCut('close', gch);
[OA_seg,kappa_seg,AA_seg,CA_seg] = calcError(test1(2,:)-1,
seg(test1(1,:)), 1: no_classes);
Error:
Output argument "gch" (and maybe others) not assigned during call to "GraphCut".
Error in demo_test_AVIRIS (line 132) gch = GraphCut('open', -Dc, beta*Sc);
0 个评论
采纳的回答
Image Analyst
2015-12-30
Of course it's possible. Graph cut is certainly not the only image segmentation algorithm ever invented. In fact I have several in my File Exchange http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
You might like to start with the Image Segmentation Tutorial which segments based on intensity thresholding.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172418/image.png)
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!