필터 지우기
필터 지우기

I have 3 separate lines in an image and i need to find length of each line separately and display.

조회 수: 2 (최근 30일)
Logic i thought is, first search for pixel having zero intensity value and then find its neighbor pixels by traversing and increase count whenever pixel with zero intensity occurs and then change the color of that pixel. After getting length of one line with same procedure find the length of other two. But i am not getting how to put it in code. Please can you help me in coding this or any other method is also fine.
Thank u

답변 (1개)

Image Analyst
Image Analyst 2015년 10월 30일
Try improfile(). Or just get a line of pixels and use find(). Or use regionprops() to find 2-D bars and get their length that way.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by