필터 지우기
필터 지우기

Any algorithm exist for sorting contours based on features?

조회 수: 3 (최근 30일)
Akshay Sahu
Akshay Sahu 2020년 3월 22일
댓글: Akshay Sahu 2020년 4월 14일
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
Image Analyst
Image Analyst 2020년 3월 23일
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 2020년 4월 14일
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

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by