![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/180954/image.jpeg)
Looking for algorithm for edge tracking of feasible solution space.
조회 수: 2 (최근 30일)
이전 댓글 표시
I am working on a problem where given some 2D space of solutions (although I will eventually want to look at higher dimensions) I need to find the space of solutions that is achievable. I am currently just doing a grid search of the space and scatter plotting the results (example in the picture below) however the space is continuous so I really only need the edge. My data would be more useful if I can simple find and follow the edge of the solution space at a higher resolution.
My real question is; are there any algorithms or theories I can look into to solve this kind of problem? Searches for Boundary tracing, edge tracing, edge mapping, etc. all result in information about edge detection for image processing.
All I need to do is start at a point that I know is feasible and then follow a line to a boundary and work my way around but I’m sure there are more efficient techniques and methods that will save time and processing power.
Thanks,
Ryan
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168630/image.jpeg)
댓글 수: 0
답변 (1개)
Matt Sprague
2018년 1월 12일
편집: Matt Sprague
2018년 1월 12일
Based on the figure provided and assuming the data follows a similar pattern across time, a threshold method should be able to extract the green region displayed. This would extract the full green region as a logical true and could then be used with "bwperim" to extract only the edge values. The Color Thresholder App could help in this process
Treating the figure attached as an image I had good results with the following code by applying a threshold on the red color channel:
BW = data(:,:,1) <= 128;
edgevalues = bwperim(BW);
imshow(edgevalues)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/180954/image.jpeg)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!