i have three gray images. How to combine them and assign them to each channel of r g b?
3 次查看(过去 30 天)
显示 更早的评论
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.
4 个评论
Image Analyst
2018-1-4
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 images without 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.
Read this then try again.
回答(1 个)
Walter Roberson
2018-1-3
cat(3, a, b, c)
5 个评论
Walter Roberson
2018-1-4
Difficult to say without the images, but I suspect that the image you posted with the white is 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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modify Image Colors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!