Isolating Scissors in a binary image

Hey so I am stuck on this problem and would love any advice on how to start to solve it.
I have this binary image and I want to isolate the scissors from the rest of the objects in the image. My problem is I am not sure how to start.
Any help would be great!

답변 (1개)

Abhishek Gupta
Abhishek Gupta 2020년 8월 27일

0 개 추천

Hi Adam,
This is similar to extracting a class of objects from a binary image using properties.
Find the code below for detecting the scissors using area property: -
Img = imread('data.png'); % read original image
complementImg = imcomplement(Img); % complement image
grayImg = rgb2gray(complementImg); % convert to grayscale
binImg = imbinarize(grayImg); % binarize
% Extract scissors using area property
outImg = bwpropfilt(binImg, 'area', [1200 1500]);
% display original & output image
figure;
imshowpair(Img,outImg,'montage');
Output: -
Regards,
Abhishek

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2020년 8월 25일

답변:

2020년 8월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by