Reputation: 51
I have a irregular shaped round object(blue) in 3D that lies on a straight plane(purple).
The object consists of a 3xn matrix which contains its x, y and z-coordinates. The plane is constructed using 2 vectors and a point it passes through.
I want to know the perimeter and cross-sectional the object encloses. I know how to obtain these dimensions in binary 2D images using the regionprops function from the image processing toolbox, but I don't know how to do this for 3D objects. Can anybody help me? Thank you very much!
Upvotes: 0
Views: 552
Reputation: 51
I've solved the problem by creating a new 2D coordinate system. Thereafter I used drawPolyline
to create a polyline and calculate the area using polyarea
.
Upvotes: 1