Table of Contents

Class RasterStatistics

Namespace
Egami.Analysis
Assembly
Egami.dll

The statistics of each channel of a frame, from Statistics(int).

public sealed class RasterStatistics
Inheritance
RasterStatistics
Inherited Members

Examples

// Per-channel statistics on the 0 to 1 scale, as identify -verbose prints them.
RasterStatistics stats = photo.Statistics();
Console.WriteLine($"red mean {stats.Red.Mean:F3} ± {stats.Red.StdDev:F3}, luma {stats.Luma.Min:F2} to {stats.Luma.Max:F2}");
bool dark = stats.Luma.Mean < 0.25;

Properties

Alpha

Gets alpha's statistics: all 1 for an image without alpha.

public ChannelStatistics Alpha { get; }

Property Value

ChannelStatistics

Blue

Gets blue's statistics.

public ChannelStatistics Blue { get; }

Property Value

ChannelStatistics

Green

Gets green's statistics.

public ChannelStatistics Green { get; }

Property Value

ChannelStatistics

Luma

Gets the statistics of the Rec. 709 luma of the stored values, 0.2126 R + 0.7152 G + 0.0722 B, as Grayscale computes it.

public ChannelStatistics Luma { get; }

Property Value

ChannelStatistics

PixelCount

Gets how many pixels were measured.

public long PixelCount { get; }

Property Value

long

Red

Gets red's statistics; a gray image's gray value.

public ChannelStatistics Red { get; }

Property Value

ChannelStatistics