DefectDetection#

itala.itala.create_defect_detection(width, height, depth)#

Creation for function for IDefectiveDetection instances. The image width, height and pixel depth that will be used for the detection must be specified and kept identical for all images. Keep in mind that when using color formats (e.g. BayerRG8) the detection must be performed on every color separately.

Parameters:
  • width (int) – width of the images the detection will be performed on.

  • height (int) – height of the images the detection will be performed on.

  • depth (int) – Depth of the images the detection will be performed on.

Return type:

IDefectDetection

Returns:

Pointer to the created IDefectDetection instance.

class itala.itala.IDefectDetection(*args, **kwargs)#

Bases: IDisposable

Interface for defective pixel detection. The description of the process principles is provided in Opto Engineering’s camera manuals. The ownership of the pixel detection instance belongs to the client code, so it needs to be disoposed via IDefectDetection::Dispose when it’s no longer required.

property thisown#

The membership flag

accumulate_dark(imageBuffer)#

Dark images are used for both leaky and hotc/cold pixel detection. These images are accumulated via this function. The statistical properties needed for the detection are calculated instantaneously and kept when an image buffer is accumulated. The image buffer memory must be managed by the client code, since IDefectDetection doesn’t store nor release image data in any way. The image buffer data is passed as generic byte pointer to keep the procedure generic and decoupled from the PFNC formats.

accumulate_gray(imageBuffer)#

Gray images are used for hot/cold pixels detection. These images are accumulated via this function.

See also: AccumulateDark

reset_dark()#

Flush the results computed for the accumulated dark images. This way a new accumulation and detection can be performed.

reset_gray()#

Flush the results computed for the accumulated gray images. This way a new accumulation and detection can be performed.

find_leaky(maxFound, threshold)#

Run the leaky pixel detection given the accumulated dark images.

Parameters:
  • maxFound (int) – Maximum amount of leaky pixels to look for.

  • threshold (float) – Distance from the mean, measured in units of standard deviation, beyond which a pixel is considered defective.

Return type:

DefectivePixelList

Returns:

a list of DefectivePixel obejects, one for each leaky pixel found.

find_hot_ncold(maxFound, threshold)#

Run the hot/cold pixel detection given the accumulated gray images.

See also: FindLeaky