PySpin.ChannelStatistics

class ChannelStatistics(image, channel)

Class used to store statistics (as properties) for one channel of an image. Properties:

  • channel: The image channel that the statistics are based on (as an int).

  • range_min: The smallest possible pixel value.

  • range_max: The largest possible pixel value.

  • pixel_value_min: The smallest pixel value in the current channel.

  • pixel_value_max: The largest pixel value in the current channel.

  • num_pixel_values: The total number of pixel values in the current channel.

  • pixel_value_mean: The average pixel value in the current channel.

  • histogram: NumPy array representing the histogram of the current channel.

property channel
property histogram
property num_pixel_values
property pixel_value_max
property pixel_value_mean
property pixel_value_min
property range_max
property range_min