MATLAB: Segment an image into portions..

image processingImage Processing Toolboxtonguevoronoi

i have a image, please can someone help me, to segment it into regions
i applied otsu threshold binarization to the image, and got a binary image,
from the binary image is it possible to get the top, bottom, left, right and center regions as a box region…
bw = im2bw(Gray, graythresh(Gray));

Best Answer

Find the centers of each zone automatically. The centroid will be at the center - use regionprops(). The others you can get by using imerode on the binary image to shrink the mask, then take the north, south, east and west pixels. Use find() for that. Now you have the centers of each zone. Then use voronoi() to get the zones themselves.