BWHoeben
BWHoeben

Reputation: 51

Find dimensions of object in 3D

I have a irregular shaped round object(blue) in 3D that lies on a straight plane(purple). 3D Object 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

Answers (1)

BWHoeben
BWHoeben

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

Related Questions