i have three gray images of same size. suppose the name is a b c. i want to construct a pseudo rgb image where red ,green , blue channels correspond to a, b , c respectively.
OK, fine, but you have not provided the individual gray scale images representing the 3 MRI states. You've only given us two sets of already-colored RGB imageswithout any explanation of what color planes t1, t2, and flair went into for each of the color channels. So it might be
rgbImage = cat(3, t1, t2, flair);
or it might be
rgbImage = cat(3, flair, t2, t1);
How is any supposed to know from what you posted? Plus, what if they have vastly different ranges? Do you scale each channel before combining? Again, we have no idea.
Sorry for the question format. I have tried to upload the image. the image size is large and cant be compressed. so i am unable to give it.it is not about the combination. i am asking you about the pseudo coloring steps. how to scale each channel? in the image provided above A=flair image, B=t1 image C=t2 image
Difficult to say without the images, but I suspect that the image you posted with the whiteis the proper image for your task of constructing pseudocolor images from those three greyscale planes. That is, I think you are probably trying to do the wrong thing.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
4 Comments
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/375442-i-have-three-gray-images-how-to-combine-them-and-assign-them-to-each-channel-of-r-g-b#comment_521230
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/375442-i-have-three-gray-images-how-to-combine-them-and-assign-them-to-each-channel-of-r-g-b#comment_521230
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/375442-i-have-three-gray-images-how-to-combine-them-and-assign-them-to-each-channel-of-r-g-b#comment_521253
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/375442-i-have-three-gray-images-how-to-combine-them-and-assign-them-to-each-channel-of-r-g-b#comment_521253
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/375442-i-have-three-gray-images-how-to-combine-them-and-assign-them-to-each-channel-of-r-g-b#comment_521261
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/375442-i-have-three-gray-images-how-to-combine-them-and-assign-them-to-each-channel-of-r-g-b#comment_521261
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/375442-i-have-three-gray-images-how-to-combine-them-and-assign-them-to-each-channel-of-r-g-b#comment_521275
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/375442-i-have-three-gray-images-how-to-combine-them-and-assign-them-to-each-channel-of-r-g-b#comment_521275
Sign in to comment.