Compute visible area of partically obscured object of 3D figure

1 回表示 (過去 30 日間)
viet le
viet le 2016 年 8 月 28 日
編集済み: viet le 2016 年 9 月 18 日

採用された回答

Image Analyst
Image Analyst 2016 年 8 月 28 日
It would take a lot of complicated geometrical equations. Or you could get an approximation by saving the rendering you have to an image with export_fig(), and then counting up the red pixels.
  3 件のコメント
Image Analyst
Image Analyst 2016 年 8 月 29 日
Something like
rgbImage = getframe();
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
redPixels = redChannel == 255 & greenChannel == 0 & blueChannel = 0;
redArea = sum(redPixels(:));
But this only gets you the area in pixels on your screen, which is not necessarily the area in the units of your axes. You would have to do a spatial calibration to turn pixels on the screen into the units of your axes.
viet le
viet le 2016 年 8 月 31 日
Thanks a lot.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by