imshow doesn't work on 4D images?

1 view (last 30 days)
I get an error "Multi-plane image inputs must be RGB images of size MxNx3." while I am trying to imshow(im2) where im2 is a 4D matrix. How do I write it correctly?

Accepted Answer

Walter Roberson
Walter Roberson on 27 May 2018
You do not. imshow() cannot possibly work with 4D images. There is no display routine for 4D images.
You might be able to take advantage of one of the routines from the File Exchange.
  2 Comments
Walter Roberson
Walter Roberson on 27 May 2018
Sometimes DICOM images come out as MxNx1xP . If you squeeze() that down to MxNxP then you can use volumeViewer() on the 3D result.
Stelios Fanourakis
Stelios Fanourakis on 28 May 2018
Yeap. The point is to develop something my own. Thanks for the help

Sign in to comment.

More Answers (0)

Categories

Find more on DICOM Format in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!