{
if (inputImages == null || inputImages.size() < 1)
{
return;
}
PixelImage in = getInputImage(0);
int width = in.getWidth();
int height = in.getHeight();
int index = 1;
while (index < inputImages.size())
{
in = getInputImage(index);
if (in.getWidth() != width)
{
throw new WrongParameterException("Width of images #0 and #" + index + " are not equal.");
}
if (in.getHeight() != height)
{
throw new WrongParameterException("Height of images #0 and #" + index + " are not equal.");
}
index++;
}
PixelImage out = getOutputImage();
if (out != null)
{
if (out.getWidth() != width)
{
throw new WrongParameterException("Width of input images #0 and output image are not equal.");
}
if (out.getHeight() != height)
{
throw new WrongParameterException("Height of input images #0 and output image are not equal.");
}
}
}