Is there a way to extract the width/diameter of the contour lines?
이전 댓글 표시
I have this image which is an intensity plot of my laser beam:

Now I want to find the horizontal and vertical (1/e^2) diameter (distance is 100 µm/px). Do you have any suggestions on how to go about fitting an ellipse at the 1/e^2 threshold.
the countour function seams to draw nice interpolated lines would there be any idea in trying to extract the information from this plot? If I can specify the counter to only be drawn at the 1/e^2 level?
댓글 수: 1
Micke Malmström
2016년 1월 18일
편집: Micke Malmström
2016년 1월 18일
채택된 답변
추가 답변 (1개)
Star Strider
2016년 1월 18일
If I understand correctly what you want, you can draw a specific contour (with a second call to contour) at the 1/e^2 level with:
C = contour(data, [1 1]*(1/e^2), 'LineStyle','none');
contour(data,'LineWidth',2, 'LevelList',1, 'LineColor','r');
The ‘C’ variable will then have the (x,y) coordinates of the ‘1/e^2’ contour.
카테고리
도움말 센터 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!