필터 지우기
필터 지우기

i have three gray images. How to combine them and assign them to each channel of r g b?

조회 수: 12 (최근 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
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.
anmol maharana
anmol maharana 2018년 1월 4일
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

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 1월 3일
cat(3, a, b, c)
  댓글 수: 5
Walter Roberson
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 CenterFile Exchange에서 Modify Image Colors에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by