MATLAB: Dividin image in two sectors

image processing

i m building a targetting system as a project and want to find out if object colored red is on right or left of centreline?????/

Best Answer

Following is thread that shows how to divide an image into 4 parts,, just edit the code some to divide into 2 halves http://www.mathworks.com/matlabcentral/answers/46699-how-to-segment-divide-an-image-into-4-equal-halves