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 Center および File ExchangeImages についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by