pb.add(scale);
pb.add(scale);
// Because the mlib subsampleaverage has bug, use pure java version
SubsampleAverageCRIF factory = new SubsampleAverageCRIF();
PlanarImage zoomOp = (PlanarImage) factory.create(pb, qualityHints);
return zoomOp;
}
public static PlanarImage lanczosScaleImage(PlanarImage input, double scale) {