# calculating the sum of the pixels on an iamge

8 messages
Open this post in threaded view
|

## calculating the sum of the pixels on an iamge

 hello freinds i have to calculate the sum of pixels in a cell (8*8 pixels) and save it in an other image until i calculate the sum of all pixels in all the image . how to proceed .and thank you in advance
Open this post in threaded view
|

## Re: calculating the sum of the pixels on an iamge

 8 pixels by eight pixels?  50 by 50 pixels is a square as wide as my finger on my laptop screen.  A letter could be done in 8x8.  In math and programming they call 8x8 a 8x8 matrix. In computer vision programming, it is called a 8 x 8 Mat or image.  Each pixel can have three colors, blue, green, red.  The most popular image software is opneCV 3.0 in the year of 2015.
Open this post in threaded view
|

## Re: calculating the sum of the pixels on an iamge

 really i can't get what you say can you please send to me a code that contain how can i add the sum of pixels in a cell of 8 by 8 pixls then i calculate the sum of pixels in a blok 16 by 16 pixels
Open this post in threaded view
|

## Re: calculating the sum of the pixels on an iamge

 In c, c++, python, or java, in the OpenCV framework?
Open this post in threaded view
|

## Re: calculating the sum of the pixels on an iamge

Open this post in threaded view
|

## Re: calculating the sum of the pixels on an iamge

 In reply to this post by keghn 8 x 8 array of pixels is = 64 pixels 16 x 16 = 256 pixels