Remove image outside of Contour Plot
Afficher commentaires plus anciens
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).

Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur ROI-Based Processing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
