I have an iso-surface of velocity V(a,b,c) as shown in the picture. I need to calculate the volume enclosed by this iso-surface and the X axis. I have the x,y,z co-ordinates corresponding to this iso-surface as three different 3D matrices. Any suggestions will be of great help! thank you!

 채택된 답변

Chad Greene
Chad Greene 2016년 2월 12일

0 개 추천

This is a sum. Each grid cell has a volume which is its height x width x length. In your case height at a given row and column is V(row,col). If your grid cells are W*L in size, the volume under the surface of one grid cell is V(row,col)*W*L. For the entire surface, sum up all those volumes and multiply by grid size:
sum(V(:))*W*L

댓글 수: 1

Walter Roberson
Walter Roberson 2016년 2월 13일
This applies if we assume a border of 0 around the values. If not then we have to subtract half of the boundary pixels (trapezoid rule.)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

질문:

2016년 2월 12일

댓글:

2016년 2월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by