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 fmri image

i want bright yellow part, can overlay other image , this. overlayed image

edit:

i followed method suggested jigg, observed final image rotated , inverted , idea why ? final_image

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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -