uShift

Flag that indicates how the shift will be done. Possible values are:

Value

Meaning

SHIFT_ZERO_TO_CENTER

[0] Shift by 32768 (16-bit images) or by 2048 (12-bit images)

SHIFT_MIN_TO_ZERO

[1] Shift all image data to make minimum value in the image 0 and the maximum value to the maximum possible value (65535 for 16-bit, 4095 for 12-bit).

SHIFT_NEG_TO_ZERO

[2] Set all the negative pixels to 0 and leave the positive pixels unchanged. (Default).

SHIFT_RANGE_ONLY

[3] Shift data by adding half the range to each pixel without changing bits outside the (LowBit-HighBit) range.

SHIFT_RANGE_PROCESS_OUTSIDE

[4] Shift data by adding half the range to each pixel and set to zero all bits outside the (LowBit-HighBit) range.