How to find width at certain pixel value in an image

조회 수: 2 (최근 30일)
Aishwarya Sanaka
Aishwarya Sanaka 2021년 2월 9일
댓글: Aishwarya Sanaka 2021년 2월 15일
I need to find the width at these positions in pixels although these can be found manually I need to compute this in matlab without manual intervention. I had written the code using improfile but the user needs to manually select the points and run the code three times to get the value. Kindly help me with this. Thank you in advance.

채택된 답변

Matt J
Matt J 2021년 2월 10일
Use the edge() command. Then, for each desired x-position, take the y-position of the 3rd edge from the top.
  댓글 수: 6
Image Analyst
Image Analyst 2021년 2월 15일
save('edge_Image.mat', 'edge_Image');
Aishwarya Sanaka
Aishwarya Sanaka 2021년 2월 15일
Appreciate your help, will try this. Thank you for responding.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by