Hello, I had tried to check using and a very simple image ( inside the image there is a square black and white). The dimension of the image is 100X100 pixel. The square point coordinate in the image are (11,11),(84,11),(11,84),(84,84). With the size of the square should be at 73 square = 5329 pixels after thresholding. But running the moment code return me moment & area size = 5843 which is different. I didn't do blur in the image. Attached is the image I had created for validation.C:\fakepath\Imagebox.jpg The coding that I refer is here for MOMENT