PROCESSIMAGES Procedure

ADDCONSTANT Statement

  • ADDCONSTANT <options>;

The ADDCONSTANT statement enables you to adjust the pixel intensity values in input images by adding a constant value. For more information about this statement, see the section ADDCONSTANT.

You can specify the following options:

B=number

specifies the constant value to add to the blue-channel pixels.

By default, B=0.

G=number

specifies the constant value to add to the green-channel pixels.

By default, G=0.

R=number

specifies the constant value to add to the red-channel pixels.

By default, R=0.

Last updated: March 26, 2026