Hi everyone,
I am new to MATLAB Image Processing and I need your help; how can I extract the values that belongs to an object like a line?Thanks in advance

 채택된 답변

Matt J
Matt J 2021년 10월 10일
편집: Matt J 2021년 10월 10일

0 개 추천

A=rgb2gray(imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/763086/image.jpeg'));
B=bwareafilt( imbinarize(A-medfilt2(A,[5,5])) ,1) ;
pixelValues=A(B)
pixelValues = 75×1
237 215 207 250 246 176 187 226 243 242
imshow(B)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

질문:

2021년 10월 10일

편집:

2021년 10월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by