ImageFolder.average

ImageFolder.average(weights=None, _box=False, _metadata='first')

Get an array of average pixel values for the stack.

Pass through to numpy average

Keyword Arguments:
  • _box (crop box) – Specifies the region of the array to be averaged. Default - entire image

  • _metadata (str) – Specifies how to generate metadata for the averaged image. - “first”: Just ise the first image’s metadata - “common”: Find the common metadata across all images - “none’: no metadata from images.

Returns:

average(ImageArray) – average values