필터 지우기
필터 지우기

.mha file displayed by matlab is different from by ITK-SNAP

조회 수: 3 (최근 30일)
Yaoting Yue
Yaoting Yue 2019년 5월 11일
댓글: Yaoting Yue 2019년 5월 11일
I have a .mha file saved from ITK-SNAP, as following upper one. But when I use Matlab to read and show this image, it shows like following under. I'm trying to find the reason, but I failed. So hope somebody will give me a help. Thanks a lot!
1557544594(1).png
1557544736(1).png

채택된 답변

Walter Roberson
Walter Roberson 2019년 5월 11일
Notice from the labels on the image that 'R' is on the left side, and 'L' is on the right side: the image is either rotated or flipped.
By examining the outline, we can see that you should
imshow( fliplr(flipud(YourImage)) )
  댓글 수: 1
Yaoting Yue
Yaoting Yue 2019년 5월 11일
Thank you a lot! I've runned "imshow( fliplr(flipud(YourImage)) )", it still wrong. After I using imshow(imrotate(fliplr(the image shown in matlab), 90), it seems the same as that ITK-snap shows, but I'm not sure whether its right. I still wonder why the mha file changed in matlab, cause DCM file won't do this.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by