Constructor.
Initialise network in range (0,0,0) to (255,255,255) and set parameters
Declaration Syntax
C# | Visual Basic | Visual C++ |
public NeuQuant( Collection<byte> thePicture, int len, int sample )
Public Sub New ( _ thePicture As Collection(Of Byte), _ len As Integer, _ sample As Integer _ )
public: NeuQuant( Collection<unsigned char>^ thePicture, int len, int sample )
Parameters
- thePicture (Collection<(Of <(Byte>)>))
- A collection of byte colour intensities, in the order red, green, blue, representing the colours of each of the pixels in an image.
- len (Int32)
- TODO: len is used to populate _lengthsize - what is this used for?
- sample (Int32)
- Image quantization quality. // TODO: is this correct?