# Demo entry 6736035

**c2**

Submitted by **anonymous**
on Apr 26, 2018 at 09:14

Language: Matlab. Code size: 454 Bytes.

Step 1. // changing the type of the image matrix Image = im2bw (image); //gray image Image = double (image); // double type Step 2. // calculating the geometric matrix m_00=sum(sum(image)); // calculating zero moment Set the all geometric matrix(m_xx) as zero initially, [row, col] = size(image); // get the size of the image for i = 1 : row for j = 1 : col m_x0= m_x0+i*image(i,j) m_0x= m_0x+j*image(i,j) end end

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.