Applying a mask to a image
Show older comments
Hi,
I have 60 CT slices and by applying certain processing steps, now I created maps (maybe we can call this as a mask also) for each one of the slices. What I want to do now is to put my particular mapping on to the original CT slice and see the matching. But the problem is that: I cannot check it by directly looking at the pixel values. Because my mapping's pixel values are between 0 and 114 whereas original CT image's are uint16. Also, adjusting pixel values by multiplying by a certain number cannot be considered as a solution for my problem.
Is there a way like for example: I colorize my mapping as red and when I put my mapping on the original CT image, then matching pixels will be shown as red. Or do you have any other suggestions?
Regards
4 Comments
Walter Roberson
on 18 Dec 2012
Should the shade of red be proportional to the mask value? If so then what mask value should indicate complete red? Should a mask value of 0 (only) indicate where the CT image shows through? Or should it be that the mask value should be interpreted as a transparency, 0 being completely transparent? If so what value should indicate full opaque ?
Image Analyst
on 18 Dec 2012
Please state the difference between "mapping" and "mask". A mask is usually a logical array or an integer array with values of 0 or 1. Why are your values going between 0 and 180? I don't understand why you want to colorize slices. How does that solve your problem of applying a mask to the slices?
Accepted Answer
More Answers (0)
Categories
Find more on Basic Display in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!