# Compute the average image value

• January 16th, 2012, 12:00 AM
IAmHere
Compute the average image value
This is my assignment:
http://www.cse.yorku.ca/course/2011/...201/Q2/Q2.html

I have no idea what is an image value. I tired looking it up but there's no help.

All the codes are given. I just need to complete the two methods. (a constructor and the computation part).
So, how do you compute it?

Can someone guide me through this?
• January 16th, 2012, 01:02 AM
Mr.777
Re: Compute the average image value
Quote:

In image processing, a frequent operation is to compute the average image value (intensity) or some other statistic over a rectangular sub-region of the image. The region of interest can be specified by 4 integer parameters: top, bottom, left and right. Not knowing the sub-region in advance, a naïve method would require O(n) time to compute this average, where n is the number of pixels in the image. One could speed this up by precomputing the average for all possible sub-regions: how much memory would this require?