MATLAB: How to put a cordinate on the image

image processingImage Processing Toolbox

i use regionprops('Centroid') for an image . now i want to put them on my original image how i can do this. also i want to make amatrix with these centroid point(the centroid point was 1 and the other pixels 0) and the size of this matrix should be similar to my original image because i need to perform region growing. i need this matrix to be my seed matrix (logical) and put its 1 on the original image.

Best Answer

You can use sprintf(), and text() to do that. See my Image Segmentation Tutorial for a full demo: http://www.mathworks.com/matlabcentral/fileexchange/25157-image-segmentation-tutorial
Related Question