Surf only region of interest?

22 ビュー (過去 30 日間)
Rafael Madrid
Rafael Madrid 2014 年 9 月 18 日
コメント済み: zexi wang 2020 年 8 月 12 日
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

採用された回答

Stephen23
Stephen23 2014 年 9 月 25 日
編集済み: Stephen23 2014 年 9 月 25 日
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 件のコメント
Rafael Madrid
Rafael Madrid 2014 年 9 月 25 日
That's exactly what I needed. Thank you.
zexi wang
zexi wang 2020 年 8 月 12 日
Thanks very much for the help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by