필터 지우기
필터 지우기

Split an image using a threshold

조회 수: 1 (최근 30일)
Merve YILDIRIM
Merve YILDIRIM 2020년 6월 6일
답변: Image Analyst 2020년 6월 6일
Hello, ı have image(2230*1949 double) . I want to Split an it to 2 image using a threshold value. How can i do?

채택된 답변

Image Analyst
Image Analyst 2020년 6월 6일
Try this
brightThings = grayImage > yourThresholdValue; % Creates a binary (logical) image.
imshow(brightThings);
props = regionprops(brightThings, 'All') % Measure a bunch of things about each bright blob.
Obviously, change variable names if you have to, to match what names you already have.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by