if (!modeName.equalsIgnoreCase("rendered"))
return true;
// Get the source and the CDF array.
RenderedImage src = args.getRenderedSource(0);
float[][] CDF = (float[][])args.getObjectParameter(0);
// Ensure that the Histogram is available and that the CDF array
// is appropriate for it.
Object prop = src.getProperty("histogram");
if(prop == null || prop.equals(Image.UndefinedProperty)) {
// Property is null or undefined.
msg.append(getName() + " " +
JaiI18N.getString("MatchCDFDescriptor1"));
return false;