Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"As i know density defines the number of pixels in a particular area, like 7 pixels per square inch"

that's constant, and not related at all to the image's content.

you probably mean the density of "on" pixels, or the ratio of black/white pixels within your 7x7 patch. that, again would indeed be related to moments->m00 ( which is the covered area == number of "on" pixels)