How to Threshold Crop an Image for analysis

2 ビュー (過去 30 日間)
Brian Peoples
Brian Peoples 2020 年 6 月 24 日
コメント済み: Brian Peoples 2020 年 6 月 26 日
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:

採用された回答

darova
darova 2020 年 6 月 25 日
Maybe simple binarization?
I0 = imread('image.jpeg');
I1 = I0(:,:,3);
I2 = im2bw(I1,graythresh(I1)-0.1);
imshowpair(I0,I2,'montage')
  5 件のコメント
Brian Peoples
Brian Peoples 2020 年 6 月 26 日
I understand this would probably involve reshaping the matrix to a certain extent
Brian Peoples
Brian Peoples 2020 年 6 月 26 日
nvm i figured it out

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by