Matlab Problem with an Image

1 Ansicht (letzte 30 Tage)
Loren99
Loren99 am 10 Okt. 2021
Bearbeitet: Loren99 am 14 Okt. 2021
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

Akzeptierte Antwort

Matt J
Matt J am 10 Okt. 2021
Bearbeitet: Matt J am 10 Okt. 2021
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)

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by