IDefectDetection#
- class Itala.DefectDetectionFactory#
Public Static Functions
- IDefectDetection Create (Int64 width, Int64 height, PixelDepth depth)#
Creates an instance of IDefectDetection for defective pixel detection. The image width, height, and pixel depth used for detection must be specified and kept identical for all images. When using color formats (e.g., BayerRG8), detection must be performed on each color separately.
- Param width:
Width of the images for which detection will be performed.
- Param height:
Height of the images for which detection will be performed.
- Param depth:
Depth of the images for which detection will be performed.
- Return:
The created IDefectDetection instance.
- interface Itala.IDefectDetection : IDisposable#
Interface for defective pixel detection. The description of the process principles is provided in Opto Engineering’s camera manuals. The instance must be disposed via IDefectDetection.Dispose when it’s no longer required.
Subclassed by Itala.ItalaDefectDetection
Public Functions
- void AccumulateDark (IntPtr 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.
- Param imageBuffer:
Buffer with the data of the image to accumulate.
- void AccumulateGray (IntPtr imageBuffer)#
Gray images are used for hot/cold pixels 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.
- Param imageBuffer:
Buffer with the data of the image to accumulate.
- void ResetDark ()#
Flush the results computed for the accumulated dark images. This way a new accumulation and detection can be performed.
- void ResetGray ()#
Flush the results computed for the accumulated gray images. This way a new accumulation and detection can be performed.
- List<DefectivePixel> FindLeaky (UInt64 maxFound, float threshold)#
Run the leaky pixel detection given the accumulated dark images.
- Param maxFound:
Maximum amount of leaky pixels to look for.
- Param threshold:
Distance from the mean, measured in units of standard deviation, beyond which a pixel is considered defective.
- Return:
A list of DefectivePixel obejects, one for each leaky pixel found.
- List<DefectivePixel> FindHotNCold (UInt64 maxFound, float threshold)#
Run the hot/cold pixel detection given the accumulated gray images.
- Param maxFound:
Maximum amount of leaky pixels to look for.
- Param threshold:
Distance from the mean, measured in units of standard deviation, beyond which a pixel is considered defective.
- Return:
A list of DefectivePixel obejects, one for each HotNCold pixel found.