Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

ISOSURFACE: identifying the connected faces

Asked by AP

AP (view profile)

on 19 Oct 2012

Dear All,

I have extracted the isosurfaces of variable "A" in a 3D volume data. For a specific value of "A", say A=1, I get three connected series of faces which are separated from each other. In other words, there are three different and isolated regions in the domain where A=1.

I am trying to identify these three regions and save them into three different variables. I would be grateful if someone could give me a hint on how I can achieve this goal.

Thanks,

Ahmad

2 Comments

Sean de Wolski

Sean de Wolski (view profile)

on 19 Oct 2012

What do you plan to do with these variables after?

AP

AP (view profile)

on 19 Oct 2012

The domain that I have has noise in it. So, when I plot an isosurface of some value, I get a few little islands in the plot beside the main one. I want to have the biggest isosurface. This may be solved by smoothing but I want to avoid using it as it changes my results.

AP

AP (view profile)

Products

No products are associated with this question.

2 Answers

Answer by Matt J

Matt J (view profile)

on 19 Oct 2012

Use BWCONNCOMP or REGIONPROPS

9 Comments

AP

AP (view profile)

on 22 Oct 2012

I think the way isosurface function works is different from setting A==1.

Can I send you the MAT file? For A==1 I get nothing as the result of S.PixelList although I can see two separate surfaces in the plot.

Matt J

Matt J (view profile)

on 22 Oct 2012

Well how do you find the isosurface? If it isn't A==1, I assume it's something like

A<=1.5 & A>=0.5

or some other logical test.

AP

AP (view profile)

on 22 Oct 2012

I had tested this before by defining a tolerance but unfortunately I don't get the results of S.PixelList similar to that of isosurface function.

Can I send you the MAT file? You may find the source of discrepancy.

Matt J

Matt J (view profile)

Answer by Sachin

Sachin (view profile)

on 19 Oct 2012

0 Comments

Sachin

Sachin (view profile)

Contact us