This function calculates the square of the Input image pixel by pixel and generates the Output image.

Values outside boundaries

The resulting pixel values cannot be outside the value range of the corresponding pixel type, e.g. for an 8 Bit B/W image, the values cannot fall below 0 or exceed 255.

If the resulting value lies outside the value range, it is set to the maximum or minimum value.