Class Quantizator

Description

Performs image quantization.

Located in /gd2imaging.php (line 501)


	
			
Variable Summary
Vector[] $glyphs
Method Summary
Quantizator addGlyph (Vector $v, [mixed $identifier = null])
mixed[] findNearestEuklid (Vector $v, [int $noise = 0])
Variables
Vector[] $glyphs = array() (line 508)

An array of glyphs/vectors to compare with.

  • access: protected
Methods
addGlyph (line 517)

Adds vector to the vectors database.

  • access: public
Quantizator addGlyph (Vector $v, [mixed $identifier = null])
  • Vector $v: Vector to add.
  • mixed $identifier: Vector identifier.
findNearestEuklid (line 531)

Finds nearest euklid.

  • return: array containing ID of the similar vector, and it's distance to the compared vector.
  • access: public
mixed[] findNearestEuklid (Vector $v, [int $noise = 0])
  • Vector $v: Vector to compare.
  • int $noise: Noise to add (default: 0 for no noise)

Documentation generated on Fri, 04 Nov 2011 17:56:15 +0100 by phpDocumentor 1.4.2