CVB.Net 14.0
Bitwise Class Reference

Collection of bit-wise operations on images. More...

Static Public Member Functions

static Image And (Image img1, Image img2)
 Performs a bit-wise AND operation between the pixels of the two input images. More...
 
static Image Or (Image img1, Image img2)
 Performs a bit-wise OR operation between the pixels of the two input images. More...
 
static Image Xor (Image img1, Image img2)
 Performs a bit-wise XOR operation between the pixels of the two input images. More...
 
static Image Negate (Image img)
 Performs a bit-wise NOT operation on the pixels of the input image to create the output image. More...
 
static Image And (Image img, int value)
 Bit-wise AND operation of the input image with a constant value. More...
 
static Image And (Image img, int[] values)
 Bit-wise AND operation on the input image with constant values. More...
 
static Image Or (Image img, int value)
 Bit-wise OR operation onthe input image with a constant value. More...
 
static Image Or (Image img, int[] values)
 Bit-wise OR operation on the input image with constant values. More...
 
static Image Xor (Image img, int value)
 Bit-wise XOR operation on the input image with constant a value. More...
 
static Image Xor (Image img, int[] values)
 Bit-wise XOR operation on the input image with constant values. More...
 
static Image UpShift (Image img, int value)
 Bit-wise shift the input image with constant a value. More...
 
static Image UpShift (Image img, int[] values)
 Bit-wise shift the input image with constant values. More...
 
static Image DownShift (Image img, int value)
 Bit-wise shift the input image with constant a value. More...
 
static Image DownShift (Image img, int[] values)
 Bit-wise shift the input image with constant values. More...
 

Detailed Description

Collection of bit-wise operations on images.

Member Function Documentation

◆ And() [1/3]

static Image And ( Image  img,
int  value 
)
static

Bit-wise AND operation of the input image with a constant value.

Parameters
imgInput image
valueValue to and each plane with
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ And() [2/3]

static Image And ( Image  img,
int[]  values 
)
static

Bit-wise AND operation on the input image with constant values.

Parameters
imgInput image
valuesValues to and the image with (at least one per plane inimg )
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ And() [3/3]

static Image And ( Image  img1,
Image  img2 
)
static

Performs a bit-wise AND operation between the pixels of the two input images.

If the sizes of the two input images differ, the result image will contain the biggest rectangle common to both input images.

Parameters
img1Input image 1
img2Input image 2
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img1 /img2 is null.
ObjectDisposedExceptionIf the input img1 /img2 has already been disposed.

◆ DownShift() [1/2]

static Image DownShift ( Image  img,
int  value 
)
static

Bit-wise shift the input image with constant a value.

Parameters
imgInput image
valueValue to shift each plane with
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ DownShift() [2/2]

static Image DownShift ( Image  img,
int[]  values 
)
static

Bit-wise shift the input image with constant values.

Parameters
imgInput image
valuesValues to shift the image with (at least one per plane inimg )
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Negate()

static Image Negate ( Image  img)
static

Performs a bit-wise NOT operation on the pixels of the input image to create the output image.

Parameters
imgInput image
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Or() [1/3]

static Image Or ( Image  img,
int  value 
)
static

Bit-wise OR operation onthe input image with a constant value.

Parameters
imgInput image
valueValue to or each plane with
Returns
Transformed image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Or() [2/3]

static Image Or ( Image  img,
int[]  values 
)
static

Bit-wise OR operation on the input image with constant values.

Parameters
imgInput image
valuesValues to or the image with (at least one per plane inimg )
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Or() [3/3]

static Image Or ( Image  img1,
Image  img2 
)
static

Performs a bit-wise OR operation between the pixels of the two input images.

If the sizes of the two input images differ, the result image will contain the biggest rectangle common to both input images.

Parameters
img1Input image 1
img2Input image 2
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img1 /img2 is null.
ObjectDisposedExceptionIf the input img1 /img2 has already been disposed.

◆ UpShift() [1/2]

static Image UpShift ( Image  img,
int  value 
)
static

Bit-wise shift the input image with constant a value.

Parameters
imgInput image
valueValue to shift each plane with
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ UpShift() [2/2]

static Image UpShift ( Image  img,
int[]  values 
)
static

Bit-wise shift the input image with constant values.

Parameters
imgInput image
valuesValues to shift the image with (at least one per plane inimg )
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Xor() [1/3]

static Image Xor ( Image  img,
int  value 
)
static

Bit-wise XOR operation on the input image with constant a value.

Parameters
imgInput image
valueValue to xor each plane with
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Xor() [2/3]

static Image Xor ( Image  img,
int[]  values 
)
static

Bit-wise XOR operation on the input image with constant values.

Parameters
imgInput image
valuesValues to or the image with (at least one per plane inimg )
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Xor() [3/3]

static Image Xor ( Image  img1,
Image  img2 
)
static

Performs a bit-wise XOR operation between the pixels of the two input images.

If the sizes of the two input images differ, the result image will contain the biggest rectangle common to both input images.

Parameters
img1Input image 1
img2Input image 2
Returns
Result image
Exceptions
ArgumentNullExceptionIf the input img1 /img2 is null.
ObjectDisposedExceptionIf the input img1 /img2 has already been disposed.