add an slider to get value for activecontour
Mostra commenti meno recenti
% Display segmented image
BWsIbf = activecontour(ImCh1,BWCh1, 400, 'edge');
% FinalImwithMask=imfuse(BWsIbf,ImCh1);
% imshow(FinalImwithMask);
% figure, imshow(ImCh1);
%title('Segmented Image');
[B,L] = bwboundaries(BWsIbf,'noholes');
imshow(ImCh1,[]);%label2rgb(L, @jet, [.5 .5 .5]))
hold on
for k = 1:length(B)
boundary = B{k};
plot(boundary(:,2), boundary(:,1), 'r', 'LineWidth', 2);
end
7 Commenti
Santhana Raj
il 30 Mar 2017
Is there a question there somewhere??
KSSV
il 30 Mar 2017
@ Santhana Raj the user want's to add an slider to get value for activecontour. So he is asking us to include it in his code I suppose.
Peyman Obeidy
il 30 Mar 2017
Peyman Obeidy
il 30 Mar 2017
Adam
il 30 Mar 2017
sliders have floating point values when you drag them. You can just use
round( val )
to make it integer.
Peyman Obeidy
il 30 Mar 2017
Modificato: Peyman Obeidy
il 30 Mar 2017
Peyman Obeidy
il 30 Mar 2017
Risposte (1)
Peyman Obeidy
il 5 Apr 2017
0 voti
Categorie
Scopri di più su Image Arithmetic in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!