Remove image outside of Contour Plot
Mostrar comentarios más antiguos
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).

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre ROI-Based Processing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
