SoBitShiftProcessing engine More...
#include <ImageViz/Engines/ArithmeticAndLogic/LogicalOperations/SoBitShiftProcessing.h>
Public Types | |
enum | ShiftDirection { LEFT = 0, RIGHT = 1 } |
Public Member Functions | |
SoBitShiftProcessing () | |
Public Attributes | |
SoSFImageDataAdapter | inImage |
SoSFInt32 | bitNumber |
SoSFEnum | shiftDirection |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outImage |
The SoBitShiftProcessing engine shifts an image by a given number of bits.
The SoBitShiftProcessing module shifts an image by a given number of bits. Each pixel/voxel of an image is shifted as shown in the example of the Figure below.
Shifting a short value by 2 bits
To summarize:
SoLogicalValueProcessing, SoLogicalImageProcessing.
inImage | NULL |
bitNumber | 1 |
shiftDirection | LEFT |
SoBitShiftProcessing::SoBitShiftProcessing | ( | ) |
Constructor.
The number of bits to shift.
Default value is 1.
The input image.
Default value is NULL. Supported types include: grayscale binary label color image.
The output image.
Default value is NULL. Supported types include: grayscale binary label color image.
Select the shifting direction.
Use enum ShiftDirection. Default is LEFT