C# Class SimplePaletteQuantizer.ColorCaches.LocalitySensitiveHash.LshColorCache

Inheritance: BaseColorCache
Mostrar archivo Open project: RHY3756547/FreeSO

Public Methods

Method Description
LshColorCache ( ) : System

Initializes a new instance of the LshColorCache class.

LshColorCache ( ColorModel colorModel, Byte quality ) : System

Initializes a new instance of the LshColorCache class.

Prepare ( ) : void

See BaseColorCache.Prepare for more details.

Protected Methods

Method Description
OnCachePalette ( IList palette ) : void

See BaseColorCache.OnCachePalette for more details.

OnGetColorPaletteIndex ( Color color, Int32 &paletteIndex ) : void

See BaseColorCache.OnGetColorPaletteIndex for more details.

Private Methods

Method Description
GetBucket ( Color color ) : BucketInfo
GetColorBucketIndex ( Color color ) : System.Int64

Method Details

LshColorCache() public method

Initializes a new instance of the LshColorCache class.
public LshColorCache ( ) : System
return System

LshColorCache() public method

Initializes a new instance of the LshColorCache class.
public LshColorCache ( ColorModel colorModel, Byte quality ) : System
colorModel ColorModel The color model.
quality Byte The quality.
return System

OnCachePalette() protected method

See BaseColorCache.OnCachePalette for more details.
protected OnCachePalette ( IList palette ) : void
palette IList
return void

OnGetColorPaletteIndex() protected method

See BaseColorCache.OnGetColorPaletteIndex for more details.
protected OnGetColorPaletteIndex ( Color color, Int32 &paletteIndex ) : void
color Color
paletteIndex System.Int32
return void

Prepare() public method

See BaseColorCache.Prepare for more details.
public Prepare ( ) : void
return void