Skip to content

Class JoeScan::Pinchot::ExclusionMask

ClassList > JoeScan > Pinchot > ExclusionMask

An exclusion mask determines which pixels on the sensor image should be ignored.

Inherits the following classes: ICloneable

Public Properties

Type Name
uint Height
The height of the exclusion mask.
uint Width
The width of the exclusion mask.
bool this[int pixel]
Gets or sets the pixel .

Public Functions

Type Name
object Clone ()
Returns a clone of this object. Changes to the original object will not reflect in the cloned object.
byte[] GetMask ()
Gets the exclusion mask as a byte array.
void SetPixels (int startPixel, int endPixel)
Marks all pixels between startPixel and__endPixel to be excluded.

Public Properties Documentation

Height

The height of the exclusion mask.

uint Height;


Width

The width of the exclusion mask.

uint Width;


this[int pixel]

Gets or sets the pixel .

bool this[int pixel];

Parameters:

  • pixel The pixel to get or set.

Returns:

true if the pixel is excluded else false.


Public Functions Documentation

Clone

Returns a clone of this object. Changes to the original object will not reflect in the cloned object.

object Clone() 

Returns:

A clone of this object.


GetMask

Gets the exclusion mask as a byte array.

byte[] GetMask() 

Returns:

The mask as an array of bytes. Each byte corresponds to eight pixels in the image where a bit value of 1 means the pixel is excluded.


SetPixels

Marks all pixels between startPixel and__endPixel to be excluded.

void SetPixels(
    int startPixel,
    int endPixel
) 

Parameters:

  • startPixel The starting exclusion pixel.
  • endPixel The ending exclusion pixel.

Exception:

  • ArgumentException