Apply the image processing technique that can divided it to two equal areas.

find the size of the object and find the center then drow ablack line in the center.

1 Comment

Is it necessary to detect the object in the image, or should the entire image be divided into two? If the object needs to be detected, then what are the properties that set it apart from the rest of the image?

Answers (1)

[r c] = size(i1);% i1 is the input image
i1(:,round(c/2):round(c/2)+1)=0;
imshow(i1)

This question is closed.

Asked:

on 17 May 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!