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 Related SolutionsMATLAB: How to divide image into sectors around CoG Create x,y coordinates of an arc using the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_an_arc.3F.Then pass those coordinates into poly2mask(x,y,rows,columns) to get a binary image (mask). Then multiply that by, or assign, the image to mask off everything except that sector.Let me know if you can't figure out the attached, well commented code. MATLAB: How to segment (divide) an image into 4 equal halves I1=I(1:size(I,1)/2,1:size(I,2)/2,:);I2=I(size(I,1)/2+1:size(I,1),1:size(I,2)/2,:);I3=I(1:size(I,1)/2,size(I,2)/2+1:size(I,2),:);I4=I(size(I,1)/2+1:size(I,1),size(I,2)/2+1:size(I,2),:);try this out, it will do Related QuestionHow a binary image can be divided into four equal parts using loopHello everyone, i am confuse with interleaving task.Hi i have 1×36 cell,each cell contains 7×7 double, i need to divide each 7×7 equally into 4 halves and find max value in each halves,likewise for all 36 cells
Best Answer