MATLAB Answers

Surf only region of interest?

40 views (last 30 days)
Hi,
So I have this 3D array from structured light 3D scanning. The code prompts me to make a mask to then unwrap the phase inside that mask. But when I plot the array it will show the entire masked array instead of just my shape. How can I surf plot only the region I've marked? i.e, only the face. Thanks
EDIT: Maybe I phrased it wrong. Maybe I should say, how can I make the rest of the surface transparent, leaving only the face or whatever my object would be?
Raf

  0 Comments

Sign in to comment.

Accepted Answer

Stephen Cobeldick
Stephen Cobeldick on 25 Sep 2014
Edited: Stephen Cobeldick on 25 Sep 2014
One possibility is to convert the data that you do not wish to plot to NaN s. In most of MATLAB's basic plotting functions (like surf ) any NaN s are ignored (i.e. not plotted):

  1 Comment

Rafael Madrid
Rafael Madrid on 25 Sep 2014
That's exactly what I needed. Thank you.

Sign in to comment.

More Answers (0)

Sign in to answer this question.