How to Threshold Crop an Image for analysis

1 visualizzazione (ultimi 30 giorni)
Basically all I want to do is perform a lighting analysis on the hair itself in the border i set for it (blue tape). Is there a way I can crop this using some sort of color threshhold? the picture setup should be consistant everytime (i dont want to have to bother w imcrop(). Here is the image:

Risposta accettata

darova
darova il 25 Giu 2020
Maybe simple binarization?
I0 = imread('image.jpeg');
I1 = I0(:,:,3);
I2 = im2bw(I1,graythresh(I1)-0.1);
imshowpair(I0,I2,'montage')
  5 Commenti
Brian Peoples
Brian Peoples il 26 Giu 2020
I understand this would probably involve reshaping the matrix to a certain extent

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by