Calculates average of color channels in the given region of interest.
- Input image.
- A coordinate frame for the rectangle in the world coordinate system.
- The size of the rectangle in which the average is calculated. If size is undefined (either width or height is NAN), the average is computed from the whole image. Otherwise the region of interest is determined by size and frame.
- Average of color over the area framed by the region of interest.