IPixels iPixels)
IPixels iPixels, PixelBuffer buffer)
    private static void resetChannelBindings(RenderingDef def, Pixels pixels,                                             IPixels iPixels)    {        // The actual channel bindings we are returning        List<ChannelBinding> channelBindings = def.getWaveRendering();        List<Channel> channels = pixels.getChannels();        int i = 0;        for (Channel channel : channels)        {            StatsInfo stats = channel.getStatsInfo();            Family family =            	QuantumFactory.getFamily(iPixels, QuantumFactory.LINEAR);            ChannelBinding channelBinding = channelBindings.get(i);            channelBinding.setFamily(family);            channelBinding.setCoefficient(new Double(1));            // FIXME: Lost of precision, downcast from Double to Float            channelBinding.setInputStart(new Float(stats.getGlobalMin()));            channelBinding.setInputEnd(new Float(stats.getGlobalMax()));                        // If we have more than one channel set each of the first three            // active, otherwise only activate the first.            if (i < 3)            	channelBinding.setActive(true);                        channelBinding.setColor(ColorsFactory.getColor(i, channel));        	channelBinding.setNoiseReduction(false);            i++;        }    }