isosurface(images, 1) shows blank window

5 views (last 30 days)
Nitinkumar Ambekar
Nitinkumar Ambekar on 31 Mar 2016
Commented: Mike Garrity on 1 Apr 2016
I have variable images of size 512x512x22, passing this variable to isosurface() shows an empty window. I have read images as
images(:,:,1) = img2bw(imread('img1.gpg'));
images(:,:,2) = img2bw(imread('img2.gpg'));
images(:,:,3) = img2bw(imread('img3.gpg'));
...
...
images(:,:,22) = img2bw(imread('img22.gpg'));
isosurface(images, 1); %This executes, but shows blank output window
What I am doing wrong here?
  4 Comments
Nitinkumar Ambekar
Nitinkumar Ambekar on 1 Apr 2016
@MikeGarrity, I executed images = images * 2 and it works! Thanks a lot!
Mike Garrity
Mike Garrity on 1 Apr 2016
Ah, there's actually some interesting stuff going on in the case where your iso value is exactly equal to the values in your array. In this blog post , I talked about how that works with contour. For isosurface it's similar, but not exactly the same.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!