{
for (int channelIndex = 0; channelIndex < in.getNumChannels(); channelIndex++)
{
Histogram1DCreator hc = new Histogram1DCreator();
hc.setImage(in, channelIndex);
hc.process();
Histogram1D hist = hc.getHistogram();
final int MAX_SAMPLE = in.getMaxSample(channelIndex);
int[] data = new int[MAX_SAMPLE + 1];
int NUM_PIXELS = in.getWidth() * in.getHeight();