MATLAB: How to segment 2×3 matrix from an image

braillesegmentation process

i need to separate 2×3 matrix from braille code image.

Best Answer

No you do not. You need to find bounding boxes on regions, sub-divide the region into subsections of half the height and third of the widths, determine whether each subsection is filled or not, and output the pattern of occupancy. At no point are you going to be looking at an array that is 2 pixels high by 3 pixels wide.