Extracting data from ROI an IR image and discarding other pixels
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
![FLIR2100.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/209875/image.jpeg)
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?
0 commentaires
Réponses (2)
Shivam Gupta
le 25 Mar 2019
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:
0 commentaires
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!