computeLocationStats(getDefaultPlaneDef());
    public Renderer(IPixels iPixels, Pixels pixelsObj,    		        RenderingDef renderingDefObj, PixelBuffer bufferObj)    {         metadata = pixelsObj;        rndDef = renderingDefObj;        buffer = bufferObj;        this.iPixels = iPixels;                if (metadata == null)        	throw new NullPointerException("Expecting not null metadata");        else if (rndDef == null)        	throw new NullPointerException("Expecting not null rndDef");        else if (buffer == null)        	throw new NullPointerException("Expecting not null buffer");                //Create and configure the quantum strategies.        QuantumDef qd = rndDef.getQuantization();        quantumManager = new QuantumManager(metadata, iPixels);        ChannelBinding[] cBindings= getChannelBindings();        quantumManager.initStrategies(qd, metadata.getPixelsType(), cBindings);                //Compute the location stats.        computeLocationStats(getDefaultPlaneDef());                //Create and configure the codomain chain.        codomainChain = new CodomainChain(qd.getCdStart().intValue(),                                           qd.getCdEnd().intValue(),                                          rndDef.getSpatialDomainEnhancement());        //Create an appropriate rendering strategy.        renderingStrategy = RenderingStrategy.makeNew(rndDef.getModel());    }