Surf only region of interest?

22 visualizaciones (últimos 30 días)
Rafael Madrid
Rafael Madrid el 18 de Sept. de 2014
Comentada: zexi wang el 12 de Ag. de 2020
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

Respuesta aceptada

Stephen23
Stephen23 el 25 de Sept. de 2014
Editada: Stephen23 el 25 de Sept. de 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):
  2 comentarios
Rafael Madrid
Rafael Madrid el 25 de Sept. de 2014
That's exactly what I needed. Thank you.
zexi wang
zexi wang el 12 de Ag. de 2020
Thanks very much for the help!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by