CVB.Net 15.0
LaserLineExtraction Class Reference

Contains functions used to extract laser lines from images. More...

Static Public Member Functions

static void ExtractLaserLineFromMonoImage (Image monoImage, LineExtractionParameters extractionParams, int lineOut, Image rangeMap)
 Extracts the laser line from the given monoImage and stores it in the pre-allocated rangeMap at given lineOut . More...
 
static void ExtractLaserLineFromMonoImage (Image monoImage, LineExtractionParameters extractionParams, int lineOut, Image rangeMap, Image intensityImage)
 Extracts the laser line from the given monoImage and stores it in the pre-allocated rangeMap at given lineOut . More...
 

Detailed Description

Contains functions used to extract laser lines from images.

Member Function Documentation

◆ ExtractLaserLineFromMonoImage() [1/2]

static void ExtractLaserLineFromMonoImage ( Image  monoImage,
LineExtractionParameters  extractionParams,
int  lineOut,
Image  rangeMap 
)
static

Extracts the laser line from the given monoImage and stores it in the pre-allocated rangeMap at given lineOut .

rangeMap must be allocated correctly. The following constrains must be met:

  • The width of rangeMap must be equal to the width of monoImage .
  • The height of rangeMap must be greater than lineOut .
  • The data type of rangeMap must be float or double.
Parameters
monoImageMono image with laser line.
extractionParamsParameters defining algorithm used for the extraction of the laser line.
lineOutLine within the bounds of rangeMap where results will be stored.
rangeMapImage where results are stored. Has to be allocated correctly (see remarks).
Exceptions
ArgumentNullExceptionIf monoImage or rangeMap are null.
ArgumentExceptionWhen one of the input parameters is invalid.
ArgumentOutOfRangeExceptionWhen lineOut is out of bounds.
CvbExceptionWhen an error during line extraction occurs.

◆ ExtractLaserLineFromMonoImage() [2/2]

static void ExtractLaserLineFromMonoImage ( Image  monoImage,
LineExtractionParameters  extractionParams,
int  lineOut,
Image  rangeMap,
Image  intensityImage 
)
static

Extracts the laser line from the given monoImage and stores it in the pre-allocated rangeMap at given lineOut .

If the intensity values of the laser peaks should not be computed intensityImage must be null. Otherwise it has to be allocated correctly, see below.

rangeMap and intensityImage must be allocated correctly. The following constrains must be met:

  • The width of rangeMap (or intensityImage ) must be equal to the width of monoImage .
  • The height of rangeMap (or intensityImage ) must be greater than lineOut .
  • The data type of rangeMap (or intensityImage ) must be float or double.
Parameters
monoImageMono image with laser line.
extractionParamsParameters defining algorithm used for the extraction of the laser line.
lineOutLine within the bounds of rangeMap (or intensityImage ) where results will be stored.
rangeMapImage where results are stored. Has to be allocated correctly (see remarks).
intensityImageImage where intensity values are stored. Has to be null if the intensity should not be computed. Otherwise it has to be allocated correctly (see remarks).
Exceptions
ArgumentNullExceptionIf monoImage or rangeMap are null.
ArgumentExceptionWhen one of the input parameters is invalid.
ArgumentOutOfRangeExceptionWhen lineOut is out of bounds.
CvbExceptionWhen an error during line extraction occurs.