how can I use montage to display 3d medical images (array) ?

조회 수: 3 (최근 30일)
ROY EL ZEGHONDI
ROY EL ZEGHONDI 2017년 10월 14일
댓글: ROY EL ZEGHONDI 2017년 10월 16일
Im new to image processing and its been a long time I havent used Matlab. basically i created an array (ct1) that includes 364 medical images (512x512x364 int16). I want to use montage to display all images without specifying sizes directly. What I mean is I want to do a montage command that automatically gets the sizes and so on. how do I do that using the montage command as I couldnt find a enough info for the montage command. I was thinking of something similar to:
Montage (reshape (unit16 (ct1), [size, (ct1,1), size (ct1,2),1,size (ct1,3)),'displayRange' , [])
Im getting this error:
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [
I tried playing around with this but its always giving me the same error, and I think im missing something with the format of the montage command and as I said I cant find enough help with the help or online. I appreciate the help, thank you
  댓글 수: 1
ROY EL ZEGHONDI
ROY EL ZEGHONDI 2017년 10월 15일
ct1 contains the 364 images and is 512x512x364 int16. I tried using the command below but it gave me this error:
montage (reshape (unit16 (ct1), [size (ct1,1),size (ct1,2),size (ct1,3)])); montage (reshape (unit16 (ct1), [size (ct1,1),size (ct1,2),size (ct1,3)]));
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
can I pls get help why this error is occuring

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

채택된 답변

KSSV
KSSV 2017년 10월 16일
montage(reshape(ct1,[size(ct1,1),size(ct1,2),1,size(ct1,3)]),'displayRange' , [])
  댓글 수: 3
KSSV
KSSV 2017년 10월 16일
Thank you is accepting the answer.....:)
ROY EL ZEGHONDI
ROY EL ZEGHONDI 2017년 10월 16일
just did. sry im new here

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 3-D Volumetric Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by