Strabo.Core.ImageProcessing.ColorHistogram.getColor C# (CSharp) Method

getColor() public method

public getColor ( int index ) : int
index int
return int
        public int getColor(int index)
        {
            return this.colorArray[index];
        }

Usage Example

        public void getRGBData(ColorHistogram colorHist, double[][] data)
        {
            int size = colorHist.getNumberOfColors();

            for (int x = 0; x < size; x++)
            {
                data[x] = new double[3];
                int rgb = colorHist.getColor(x);
                data[x][0] = ((rgb & 0xFF0000) >> 16);
                data[x][1] = ((rgb & 0xFF00) >> 8);
                data[x][2] = (rgb & 0xFF);
            }
        }
All Usage Examples Of Strabo.Core.ImageProcessing.ColorHistogram::getColor