Filter löschen
Filter löschen

Any algorithm exist for sorting contours based on features?

3 Ansichten (letzte 30 Tage)
Akshay Sahu
Akshay Sahu am 22 Mär. 2020
Kommentiert: Akshay Sahu am 14 Apr. 2020
I have to sort data such that inner loops contours should store in one matrix, then second loops and then for third loops. Actually I am able to store data in one matrix for 2 or 3 contours in a same plane but when number of contours changes with plane like at 6th slice there are 2 contours and at 7th slice there are 3 contours my program is unable to sort data contour wise. So how con I differentiate data any idea.
  3 Kommentare
Image Analyst
Image Analyst am 23 Mär. 2020
What do you want to sort ON? Like first by z level, then from outside to inside? I have no idea what you want to sort by. Based on "features" - well, what features? Radius? Z???? Saying "sort data contour wise" means absolutely nothing to me. "Contour wise" is not a number that we can sort on. But things like radius or Z or whether it's inside another circle are. In what form are your curves? How did you draw them? Do you have a list of (x,y) coordinates for each of the 37 curves?
Akshay Sahu
Akshay Sahu am 14 Apr. 2020
So here is the picture of curves that have been plotted in a sequence given in figure.
and my data in the matrix in arranged such that
{{1;NaN;2},{3;NaN;4},{5;NaN;6},{7;NaN;8},{9;NaN;10;NaN;11},{12;NaN;13;NaN14}}... and so on.
here number represents contours at different Z-height
now, I want to arrange all these contour such that I have 3 different matrix consist of
A1={{1},{3},{5},{7},{10},{13}} and so on
A2={{2},{4},{6},{8},{11},{14}} and so on
and
A3={{9},{12},{15}} and so on until the last contour
when we look from the top A1 = concave feature, A2 = convex feature and A3 = concave feature

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by