Matlab Problem with an Image

조회 수: 2 (최근 30일)
Loren99
Loren99 2021년 10월 10일
편집: Loren99 2021년 10월 14일
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일
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개)

카테고리

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