/** * Applies the JAI operation. The operation name can be fetch from {@link #operation}. The JAI * instance to use can be fetch from {@link #getJAI}. The default implementation returns the * following: * * <blockquote> * * <pre> * {@linkplain #getJAI getJAI}(hints).{@linkplain JAI#createNS createNS}({@linkplain #operation}.getName(), parameters, hints) * </pre> * * </blockquote> * * Subclasses may override this method in order to invokes a different JAI operation according * the parameters. * * @param parameters The parameters to be given to JAI. * @param hints The rendering hints to be given to JAI. * @return The result of JAI operation using the given parameters and hints. */ protected RenderedImage createRenderedImage( final ParameterBlockJAI parameters, final RenderingHints hints) { return getJAI(hints).createNS(operation.getName(), parameters, hints); }
/** * Applies the JAI operation. The operation name can be fetch from {@link #operation}. * The JAI instance to use can be fetch from {@link #getJAI}. The default implementation * returns the following: * * <blockquote><pre> * {@linkplain #getJAI getJAI}(hints).{@linkplain JAI#createNS createNS}({@linkplain #operation}.getName(), parameters, hints) * </pre></blockquote></li> * * Subclasses may override this method in order to invokes a different JAI operation * according the parameters. * * @param parameters The parameters to be given to JAI. * @param hints The rendering hints to be given to JAI. * @return The result of JAI operation using the given parameters and hints. */ protected RenderedImage createRenderedImage(final ParameterBlockJAI parameters, final RenderingHints hints) { return getJAI(hints).createNS(operation.getName(), parameters, hints); }
/** * Applies the JAI operation. The operation name can be fetch from {@link #operation}. * The JAI instance to use can be fetch from {@link #getJAI}. The default implementation * returns the following: * * <blockquote><pre> * {@linkplain #getJAI getJAI}(hints).{@linkplain JAI#createNS createNS}({@linkplain #operation}.getName(), parameters, hints) * </pre></blockquote></li> * * Subclasses may override this method in order to invokes a different JAI operation * according the parameters. * * @param parameters The parameters to be given to JAI. * @param hints The rendering hints to be given to JAI. */ protected RenderedImage createRenderedImage(final ParameterBlockJAI parameters, final RenderingHints hints) { return getJAI(hints).createNS(operation.getName(), parameters, hints); }
params = params.add(bandIndices); final PlanarImage image = OperationJAI.getJAI(hints).createNS(operation, params, hints); image.setProperty("GC_VisibleBand", visibleBand); return new BandSelector2D(source, image, targetBands, bandIndices);
croppedImage = JAI.create(operatioName, pbj, targetHints); else croppedImage = processor.createNS(operatioName, pbj,targetHints);
params = params.add(bandIndices); final PlanarImage image = OperationJAI.getJAI(hints).createNS(operation, params, hints); image.setProperty("GC_VisibleBand", visibleBand); return new BandSelector2D(source, image, targetBands, bandIndices, hints);
paramBlk.add(warp).add(interpolation).add(background); return JAI.getDefaultInstance().createNS(operation, paramBlk, targetHints);
paramBlk.add(warp).add(interpolation).add(background); return JAI.getDefaultInstance().createNS(operation, paramBlk, targetHints);
if (!processor.equals(JAI.getDefaultInstance())) { result = new SubsampleAveragedCoverage(processor.createNS( "SubsampleAverage", pbjSubsampleAverage, targetHints), sourceCoverage, actionTaken);
result= new FilteredSubsampledGridCoverage2D(processor.createNS( "FilteredSubsample", pbjFilteredSubsample, targetHints), sourceCoverage, actionTaken);
croppedImage = JAI.create(operatioName, pbj, targetHints); } else { croppedImage = processor.createNS(operatioName, pbj, targetHints);
final RenderedOp targetImage = processor.createNS(operation, paramBlk, targetHints); final Locale locale = sourceCoverage.getLocale(); // For logging purpose.
final RenderedOp targetImage = getJAI(hints).createNS(operation, paramBlk, targetHints); final Locale locale = sourceCoverage.getLocale(); // For logging purpose.