Overlaying two images help needed

조회 수: 2 (최근 30일)
Amadeus
Amadeus 2013년 1월 19일
Hello,
I have a .nii file (call it nii) and a track fiber mapping (call it M) that I want to overlay it onto. But I could not figure out a good way to do it. Here are some specifications I need:
  • At the bottom there will always be nii.img and I will put M (my tracking map) on.
  • I want to give M a colour, say it red
  • I guess I need to set a alpha which will work as transparency constant. If nii.img has a greater value, I want to see it more intense, otherwise M should be more intense.
note: there are 60 slices. (both of them has the size: 96*96*60)
Could you please help me?
Best regards, Amadeus

채택된 답변

Image Analyst
Image Analyst 2013년 1월 19일
Use the imshowpair() function in the Image Processing Toolbox. It's new within the past version or two.
  댓글 수: 2
Amadeus
Amadeus 2013년 1월 19일
This is exactly what I was looking for. Thank you so much! But I could not figure out a way to show the first image gray. Could you please help me?
Image Analyst
Image Analyst 2013년 1월 20일
I haven't used it yet. If it doesn't work for you then maybe you'll have to create an RGB image by averaging one or more color channels.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by