finding dense location and define centeriod of the each dense location
조회 수: 2 (최근 30일)
이전 댓글 표시
I have attached .mat file and below zoomed figure of one section , I would like to find the centeriod of the dense location.
Since I have huge data around 400000 * 2, i am not able to use DBSCAN.
can you please do help me out with the loaded data ?
댓글 수: 7
darova
2020년 4월 16일
Can i ask why do you need so many centroids? What are you doing further with them
채택된 답변
darova
2020년 4월 16일
Here is simple but coarse (maybe not precise method)
Fill matrix Connect pixels Thin line Remove 'spur'
Results (green point - rounded orinal data)
I suppose you want to order those points now (connect them)
댓글 수: 4
darova
2020년 4월 17일
I don't understand the question. This is your data:
Can you make a simple sketch of the result you expect?
추가 답변 (2개)
Image Analyst
2020년 4월 17일
편집: Image Analyst
2020년 4월 17일
Looks like you already have an answer that you've accepted, however one way to approach it is to use fitPolynomialRANSAC() - it's in the Computer Vision Toolbox, if you have it. You can use this function twice. The first time it will get the first curve (one of them, not sure which one though). Then remove those points close to the first curve, and run it again to get the second curve and points close to it. fitPolynomialRANSAC() will return the polynomial coefficients of the curve and the indexes of the data points that are close to that curve.
댓글 수: 2
Image Analyst
2020년 4월 17일
Well, don't bother. You already have an answer that you've accepted that works.
SatyaPrakash Gupta
2020년 4월 17일
댓글 수: 5
darova
2020년 4월 17일
I can't, sorry. Your question is too difficult for me
I did my best. That is all i can
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!