WrongParameterException
{
ensureInputImageIsAvailable();
if (outWidth == null && outHeight == null && getOutputImage() != null)
{
PixelImage out = getOutputImage();
outWidth = new Integer(out.getWidth());
outHeight = new Integer(out.getHeight());
}
if (outWidth == null)
{
throw new MissingParameterException("Output width has not been initialized");
}
if (outHeight == null)
{
throw new MissingParameterException("Output height has not been initialized");
}
PixelImage image = getInputImage();
if (image.getWidth() == outWidth.intValue() &&
image.getHeight() == outHeight.intValue())
{
throw new WrongParameterException("Input image already has the size specified by setSize.");
}
ensureOutputImageResolution(outWidth.intValue(), outHeight.intValue());
if (image instanceof IntegerImage)