C# Класс 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.
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
histogram long[][]
visualColors Pinta.ImageManipulation.ColorBgra[]

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
AddSurfaceRectangleToHistogram ( ISurface surface, Rectangle rect ) : void
Clear ( ) : void

Sets the histogram to be all zeros.

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

Описание методов

AddSurfaceRectangleToHistogram() защищенный абстрактный Метод

protected abstract AddSurfaceRectangleToHistogram ( ISurface surface, Rectangle rect ) : void
surface ISurface
rect Rectangle
Результат void

Clear() защищенный Метод

Sets the histogram to be all zeros.
protected Clear ( ) : void
Результат void

GetMax() публичный Метод

public GetMax ( ) : long
Результат long

GetMax() публичный Метод

public GetMax ( int channel ) : long
channel int
Результат long

GetMean() публичный Метод

public GetMean ( ) : float[]
Результат float[]

GetMeanColor() публичный абстрактный Метод

public abstract GetMeanColor ( ) : ColorBgra
Результат ColorBgra

GetOccurrences() публичный Метод

public GetOccurrences ( int channel, int val ) : long
channel int
val int
Результат long

GetPercentile() публичный Метод

public GetPercentile ( float fraction ) : int[]
fraction float
Результат int[]

GetPercentileColor() публичный абстрактный Метод

public abstract GetPercentileColor ( float fraction ) : ColorBgra
fraction float
Результат ColorBgra

GetVisualColor() публичный Метод

public GetVisualColor ( int channel ) : ColorBgra
channel int
Результат ColorBgra

Histogram() защищенный Метод

protected Histogram ( int channels, int entries ) : System
channels int
entries int
Результат System

OnHistogramUpdated() защищенный Метод

protected OnHistogramUpdated ( ) : void
Результат void

UpdateHistogram() публичный Метод

public UpdateHistogram ( ISurface surface, Rectangle rect ) : void
surface ISurface
rect Rectangle
Результат void

Описание свойств

histogram защищенное свойство

protected long[][] histogram
Результат long[][]

visualColors защищенное свойство

protected ColorBgra[],Pinta.ImageManipulation visualColors
Результат Pinta.ImageManipulation.ColorBgra[]