image - Coloring only specific pixels -
i have matrix representing image of brain each (i,j) position having value between 0 , 1. applying color map, pixels value 1 red , 0 yellow, in between intermediary values. now, want pixels having values above 0.8 color according colormap , rest become trasparent(that dont color), can overlay image image of brain , identify high activity region. how do ?
i have images
i want bright yellow part, can overlay other image , this.
edit:
i followed method suggested jigg, observed final image rotated , inverted , idea why ?
here option, create 3-layers array replicating grayscale brain image (imagesc
scale each layer resulting in equal r, g, , b values -> levels of gray).
graybckgnd = repmat(brain, [1, 1, 3]); data = …
then overlay activity data:
imagesc(graybcknd); hold on; dataimg = imagesc(data); set(dataimg, 'alphadata', im2double(data>0.8)); colormap jet; % or other colormap.
Comments
Post a Comment