Remove image outside of Contour Plot
Mostra commenti meno recenti
The following code gives the attached image.
figure, imshow(NT,'DisplayRange',[]);
hold on
MNSContourThreshold = 0.5*double(MaxNonSpecific)
contour(NT,[MNSContourThreshold MNSContourThreshold], 'color', 'g')
I now want to set every pixel (within the brain image) on the outside of the contour line to 1 (Black).

Risposta accettata
Più risposte (0)
Categorie
Scopri di più su ROI-Based Processing 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!
