C# 클래스 SimplePaletteQuantizer.Quantizers.NeuQuant.NeuralColorQuantizer

The NeuQuant Neural-Net image quantization algorithm (© Anthony Dekker 1994) is a replacement for the common Median Cut algorithm. It is described in the article Kohonen neural networks for optimal colour quantization in Volume 5, pp 351-367 of the journal Network: Computation in Neural Systems, Institute of Physics Publishing, 1994 (PDF version available).
상속: BaseColorQuantizer
파일 보기 프로젝트 열기: RHY3756547/FreeSO

공개 메소드들

메소드 설명
NeuralColorQuantizer ( ) : System

Initializes a new instance of the NeuralColorQuantizer class.

NeuralColorQuantizer ( Byte quality ) : System

Initializes a new instance of the NeuralColorQuantizer class.

보호된 메소드들

메소드 설명
LearnNeuronNeighbors ( Int32 red, Int32 green, Int32 blue, Int32 networkIndex, Int32 radius ) : void

Spread the bias to neuron neighbors.

OnAddColor ( Color color, Int32 key, Int32 x, Int32 y ) : void

See BaseColorQuantizer.OnAddColor for more details.

OnFinish ( ) : void

See BaseColorQuantizer.OnFinish for more details.

OnGetPalette ( Int32 colorCount ) : List

See BaseColorQuantizer.OnGetPalette for more details.

OnGetPaletteIndex ( Color color, Int32 key, Int32 x, Int32 y, Int32 &paletteIndex ) : void

See IColorQuantizer.GetPaletteIndex for more details.

OnPrepare ( ImageBuffer image ) : void

See BaseColorQuantizer.OnPrepare for more details.

비공개 메소드들

메소드 설명
FindClosestNeuron ( Int32 red, Int32 green, Int32 blue ) : Int32
LearnNeuron ( Int32 alpha, Int32 red, Int32 green, Int32 blue, Int32 networkIndex ) : void

Forces the strength of bias of the neuron towards certain color.

LearnSampleColor ( Color color ) : void
SortNetwork ( ) : void
UnbiasNetwork ( ) : void

메소드 상세

LearnNeuronNeighbors() 보호된 메소드

Spread the bias to neuron neighbors.
protected LearnNeuronNeighbors ( Int32 red, Int32 green, Int32 blue, Int32 networkIndex, Int32 radius ) : void
red System.Int32
green System.Int32
blue System.Int32
networkIndex System.Int32
radius System.Int32
리턴 void

NeuralColorQuantizer() 공개 메소드

Initializes a new instance of the NeuralColorQuantizer class.
public NeuralColorQuantizer ( ) : System
리턴 System

NeuralColorQuantizer() 공개 메소드

Initializes a new instance of the NeuralColorQuantizer class.
public NeuralColorQuantizer ( Byte quality ) : System
quality Byte The quality.
리턴 System

OnAddColor() 보호된 메소드

See BaseColorQuantizer.OnAddColor for more details.
protected OnAddColor ( Color color, Int32 key, Int32 x, Int32 y ) : void
color Color
key System.Int32
x System.Int32
y System.Int32
리턴 void

OnFinish() 보호된 메소드

See BaseColorQuantizer.OnFinish for more details.
protected OnFinish ( ) : void
리턴 void

OnGetPalette() 보호된 메소드

See BaseColorQuantizer.OnGetPalette for more details.
protected OnGetPalette ( Int32 colorCount ) : List
colorCount System.Int32
리턴 List

OnGetPaletteIndex() 보호된 메소드

See IColorQuantizer.GetPaletteIndex for more details.
protected OnGetPaletteIndex ( Color color, Int32 key, Int32 x, Int32 y, Int32 &paletteIndex ) : void
color Color
key System.Int32
x System.Int32
y System.Int32
paletteIndex System.Int32
리턴 void

OnPrepare() 보호된 메소드

See BaseColorQuantizer.OnPrepare for more details.
protected OnPrepare ( ImageBuffer image ) : void
image SimplePaletteQuantizer.Helpers.ImageBuffer
리턴 void