public class Spectrum extends Object
| Constructor and Description |
|---|
Spectrum(int[][][] data,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
List<ColorDistribution> |
getColorDistribution(int minPercentage) |
double |
getPercentage(int red,
int green,
int blue,
int range) |
int |
getPrecision() |
void |
printColors() |
public double getPercentage(int red,
int green,
int blue,
int range)
red - 0 to 255 value of redgreen - 0 to 255 value of greenblue - 0 to 255 value of bluerange - 0 to 255 value of range within which it should take histogram valuepublic void printColors()
public int getPrecision()
public List<ColorDistribution> getColorDistribution(int minPercentage)
Copyright © 2016. All rights reserved.