Sample colors🔗

Calculates average of color channels in the given region of interest.

Inputs🔗

  • image: Input image.

  • frame: A coordinate frame for the rectangle in the world coordinate system.

  • size: 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.

Outputs🔗

  • color: Average of color over the area framed by the region of interest.