C# Class Pinta.ImageManipulation.Histogram

Histogram is used to calculate a histogram for a surface (in a selection, if desired). This can then be used to retrieve percentile, average, peak, and distribution information.
Afficher le fichier Open project: PintaProject/Pinta.ImageManipulation

Protected Properties

Свойство Type Description
histogram long[][]
visualColors Pinta.ImageManipulation.ColorBgra[]

Méthodes publiques

Méthode Description
GetMax ( ) : long
GetMax ( int channel ) : long
GetMean ( ) : float[]
GetMeanColor ( ) : ColorBgra
GetOccurrences ( int channel, int val ) : long
GetPercentile ( float fraction ) : int[]
GetPercentileColor ( float fraction ) : ColorBgra
GetVisualColor ( int channel ) : ColorBgra
UpdateHistogram ( ISurface surface, Rectangle rect ) : void

Méthodes protégées

Méthode Description
AddSurfaceRectangleToHistogram ( ISurface surface, Rectangle rect ) : void
Clear ( ) : void

Sets the histogram to be all zeros.

Histogram ( int channels, int entries ) : System
OnHistogramUpdated ( ) : void

Method Details

AddSurfaceRectangleToHistogram() protected abstract méthode

protected abstract AddSurfaceRectangleToHistogram ( ISurface surface, Rectangle rect ) : void
surface ISurface
rect Rectangle
Résultat void

Clear() protected méthode

Sets the histogram to be all zeros.
protected Clear ( ) : void
Résultat void

GetMax() public méthode

public GetMax ( ) : long
Résultat long

GetMax() public méthode

public GetMax ( int channel ) : long
channel int
Résultat long

GetMean() public méthode

public GetMean ( ) : float[]
Résultat float[]

GetMeanColor() public abstract méthode

public abstract GetMeanColor ( ) : ColorBgra
Résultat ColorBgra

GetOccurrences() public méthode

public GetOccurrences ( int channel, int val ) : long
channel int
val int
Résultat long

GetPercentile() public méthode

public GetPercentile ( float fraction ) : int[]
fraction float
Résultat int[]

GetPercentileColor() public abstract méthode

public abstract GetPercentileColor ( float fraction ) : ColorBgra
fraction float
Résultat ColorBgra

GetVisualColor() public méthode

public GetVisualColor ( int channel ) : ColorBgra
channel int
Résultat ColorBgra

Histogram() protected méthode

protected Histogram ( int channels, int entries ) : System
channels int
entries int
Résultat System

OnHistogramUpdated() protected méthode

protected OnHistogramUpdated ( ) : void
Résultat void

UpdateHistogram() public méthode

public UpdateHistogram ( ISurface surface, Rectangle rect ) : void
surface ISurface
rect Rectangle
Résultat void

Property Details

histogram protected_oe property

protected long[][] histogram
Résultat long[][]

visualColors protected_oe property

protected ColorBgra[],Pinta.ImageManipulation visualColors
Résultat Pinta.ImageManipulation.ColorBgra[]