Extracting data from ROI an IR image and discarding other pixels
이전 댓글 표시

Hi, I am new to matlab. I am trying to extract pixel data of a particular region (ROI defined by the user) in order to characterise that region. But I only want to extract this ROI and remove all other pixels. Any recommended approaches/code?
답변 (2개)
Image Analyst
2019년 3월 25일
2 개 추천
See my attached demo.
Shivam Gupta
2019년 3월 25일
1 개 추천
You can extract pixel data of a particular region by using IMCROP function.
For example,
I= imread('example.png');
imshow(I);
rect = [290 160 220 165];
I2= imcrop(I,rect);
figure
imshow(I2);
For more information, see:
카테고리
도움말 센터 및 File Exchange에서 ROI-Based Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!