Center Points and Moments of Image

5 views (last 30 days)
I am trying to find some image's center points and moments but first I have to convert the image to binary by thresholding. So I did that:
I=imread('image.tiff');
BW=im2bw(I);
imshow(BW);
[m,n]=size(I);
then i did the loop :
for i=0:2048;
for j=0:2048;
but I'm getting confused now. How can I find the center points and moments the easy way (and not using regionprops)?

Accepted Answer

Image Analyst
Image Analyst on 16 Oct 2017
See my attached image moments demo.

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!