Ask Your Question
0

How to calculate the pixel density of a sampled binary image

asked 2013-06-02 15:21:12 -0500

Heshan Sandeepa gravatar image

updated 2013-06-03 03:47:08 -0500

hi, this may be a very simple matter, but i have conflict with that. I have split a particular binary image(28 x 28) into (4 x 4) samples. Now i want to calculate the pixel densities of each sample(i use those density values as features in a OCR application). As i know density defines the number of pixels in a particular area, like 7 pixels per square inch. Is that the same in here? all of my samples have 4 pixels. Is there are relationship between Moment->m00 and pixel density ? can someone explain this ? plz help

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-06-03 05:25:28 -0500

berak gravatar image

"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)

edit flag offensive delete link more

Comments

hi berak - good explanation , thank you very much

Heshan Sandeepa gravatar imageHeshan Sandeepa ( 2013-06-03 08:49:36 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-06-02 15:21:12 -0500

Seen: 2,408 times

Last updated: Jun 03 '13