Functions | |
| cvbres_t | LMCreate (LMH *LMHandle) |
| Creates a LightMeter object. More... | |
| cvbres_t | LMDestroy (LMH LMHandle) |
| Destroys a LightMeter object. More... | |
| cvbres_t | LMExecute (LMH LMHandle) |
| Calculate the histogram of an image and all statistical values. More... | |
| cvbres_t | LMGetArea (LMH LMHandle, cvbdim_t PlaneIndex, TArea *pArea) |
| Get the area of a specific plane which the LightMeter object is using to process the histogram and the statistic values. More... | |
| cvbres_t | LMGetDensity (LMH LMHandle, cvbdim_t PlaneIndex, cvbdensity_t *pDensity) |
| Get the density used by the LightMeter object for the processing of the selected plane. More... | |
| cvbres_t | LMGetEntireImageFlag (LMH LMHandle, cvbdim_t PlaneIndex, cvbbool_t *pEntireImageFlag) |
| Checks if LightMeter is using the entire image for processing or the area selected by the LMSetArea function. More... | |
| cvbres_t | LMGetImage (LMH LMHandle, IMG *pImage) |
| Get the image object that is currently used. More... | |
| cvbres_t | LMGetLastMessageString (LMH LMHandle, char *Message, size_t MaxMessageLength) |
| Returns the last error message if a function has returned with an error. More... | |
| cvbres_t | LMGetProcessFlag (LMH LMHandle, cvbdim_t PlaneIndex, cvbbool_t *pProcessFlag) |
| Checks if LightMeter is using the selected plane for processing. More... | |
| cvbres_t | LMGetResetCSFlag (LMH LMHandle, cvbbool_t *pResetCSFlag) |
| Checks if LightMeter is resetting the image coordinate system before it is processing the histogram. By default the flag is set to FALSE when a new image is passed to the LightMeter object with the LMSetImage function. More... | |
| cvbres_t | LMGetSingleHistogramEntry (LMH LMHandle, cvbdim_t PlaneIndex, size_t EntryIndex, double *pEntry) |
| Get the number of pixels with a specific grey value in the selected area of a specific plane. To determine number of pixels found for a single grey value use the grey value as index number for the function. More... | |
| cvbres_t | LMGetStatisticMax (LMH LMHandle, cvbdim_t PlaneIndex, double *pMax) |
| Get the maximum gray value in the selected area of a specific plane. More... | |
| cvbres_t | LMGetStatisticMean (LMH LMHandle, cvbdim_t PlaneIndex, double *pMean) |
| Get the mean gray value in the selected area of a specific plane. More... | |
| cvbres_t | LMGetStatisticMin (LMH LMHandle, cvbdim_t PlaneIndex, double *pMin) |
| Get the minimum gray value in the selected area of a specific plane. More... | |
| cvbres_t | LMGetStatisticMode (LMH LMHandle, cvbdim_t PlaneIndex, double *pMode) |
| Get the most common gray value in the selected area of a specific plane. More... | |
| cvbres_t | LMGetStatisticPixelInLimits (LMH LMHandle, cvbdim_t PlaneIndex, cvbuint32_t LowerLimit, cvbuint32_t UpperLimit, double *pPixelInLimits) |
| Get the number of pixels with a grey value between a lower and a upper limit in the selected area of a specific plane. The minimum and the maximum value for the limits are determined by the data type of the image object (e.g. 0-255 for a 8 bit image). More... | |
| cvbres_t | LMGetStatisticStdDev (LMH LMHandle, cvbdim_t PlaneIndex, double *pStdDev) |
| Get he standard deviation of the gray values in the selected area of a specific plane. The standard deviation is the square root of the variance. See LMGetStatisticVariance for more information. More... | |
| cvbres_t | LMGetStatisticTotal (LMH LMHandle, cvbdim_t PlaneIndex, double *pTotal) |
| Get the total number of pixels used by the LightMeter object to process the histogram and the statistic values for a specific plane. The value depends on the Density set with the LMSetDensity function. More... | |
| cvbres_t | LMGetStatisticVariance (LMH LMHandle, cvbdim_t PlaneIndex, double *pVariance) |
| Get the variance of the gray values in the selected area of a specific plane. The variance is calculated as follows: More... | |
| cvbres_t | LMGetStopWatch (LMH LMHandle, cvbval_t Index, double *pStopWatch) |
| Measure the time between two subsequent calls to the function with the same index. The index is used to start several stopwatch objects which measure different intervals. More... | |
| cvbres_t | LMGetUseCSFlag (LMH LMHandle, cvbdim_t PlaneIndex, cvbbool_t *pUseCSFlag) |
| Checks if LightMeter is using the image coordinate system to process the histogram. By default the image coordinate system is used when a new image is passed to the LightMeter object with the LMSetImage function. The image coordinate system can switched ON or OFF for each plane of the image. More... | |
| cvbres_t | LMSetArea (LMH LMHandle, cvbdim_t PlaneIndex, TArea Area) |
| Set the area of a specific plane which the LightMeter object is using to process the histogram and the statistic values. More... | |
| cvbres_t | LMSetDensity (LMH LMHandle, cvbdim_t PlaneIndex, cvbdensity_t Density) |
| Set the density used by the LightMeter object for the processing of the selected plane. More... | |
| cvbres_t | LMSetEntireImageFlag (LMH LMHandle, cvbdim_t PlaneIndex, cvbbool_t EntireImageFlag) |
| Specifies whether the LightMeter object is using the entire image for processing the histogram or the area selected by the LMSetArea function. More... | |
| cvbres_t | LMSetImage (LMH LMHandle, IMG Image) |
| Set the image object that is used by the LightMeter object. More... | |
| cvbres_t | LMSetProcessFlag (LMH LMHandle, cvbdim_t PlaneIndex, cvbbool_t ProcessFlag) |
| Sets the process flag of a specific plane of the image. More... | |
| cvbres_t | LMSetResetCSFlag (LMH LMHandle, cvbbool_t ResetCSFlag) |
| Specifies if the LightMeter object is resetting the image coordinate system before it is processing the histogram or not. By default the flag is set to FALSE when a new image is passed to the LightMeter object with the LMSetImage function. More... | |
| cvbres_t | LMSetUseCSFlag (LMH LMHandle, cvbdim_t PlaneIndex, cvbbool_t UseCSFlag) |
| Specifies if the image image coordinate system should be used to process the histogram. By default the image coordinate system is used when a new image is passed to the LightMeter object with the LMSetImage function. The image coordinate system can switched ON or OFF for each plane of the image. More... | |
| cvbres_t LMCreate | ( | LMH * | LMHandle | ) |
Creates a LightMeter object.
| [out] | LMHandle | Handle to LightMeter object. |
| cvbres_t LMDestroy | ( | LMH | LMHandle | ) |
Destroys a LightMeter object.
| [in] | LMHandle | Handle to LightMeter object. |
| cvbres_t LMExecute | ( | LMH | LMHandle | ) |
Calculate the histogram of an image and all statistical values.
| [in] | LMHandle | Handle to LightMeter object. |
| cvbres_t LMGetArea | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| TArea * | pArea | ||
| ) |
Get the area of a specific plane which the LightMeter object is using to process the histogram and the statistic values.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [out] | pArea | Area of interest in the image plane. |
| cvbres_t LMGetDensity | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| cvbdensity_t * | pDensity | ||
| ) |
Get the density used by the LightMeter object for the processing of the selected plane.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [out] | pDensity | Density for the selected plane used for processing. The range is 0 - 1000. |
| cvbres_t LMGetEntireImageFlag | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| cvbbool_t * | pEntireImageFlag | ||
| ) |
Checks if LightMeter is using the entire image for processing or the area selected by the LMSetArea function.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [out] | pEntireImageFlag | TRUE indicates that the entire image is used for processing, FALSE otherwise. |
| cvbres_t LMGetImage | ( | LMH | LMHandle, |
| IMG * | pImage | ||
| ) |
| cvbres_t LMGetLastMessageString | ( | LMH | LMHandle, |
| char * | Message, | ||
| size_t | MaxMessageLength | ||
| ) |
Returns the last error message if a function has returned with an error.
| [in] | LMHandle | Handle to LightMeter object. his buffer must be allocated from the user and be at least as long as defined in MaxMessageLength. |
| [out] | Message | String Buffer in which message is written to. |
| [in] | MaxMessageLength | Length of the string. |
| cvbres_t LMGetProcessFlag | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| cvbbool_t * | pProcessFlag | ||
| ) |
Checks if LightMeter is using the selected plane for processing.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [out] | pProcessFlag | TRUE if the plane is used for processing, FALSE otherwise. |
| cvbres_t LMGetResetCSFlag | ( | LMH | LMHandle, |
| cvbbool_t * | pResetCSFlag | ||
| ) |
Checks if LightMeter is resetting the image coordinate system before it is processing the histogram.
By default the flag is set to FALSE when a new image is passed to the LightMeter object with the LMSetImage function.
| [in] | LMHandle | Handle to LightMeter object. |
| [out] | pResetCSFlag | TRUE if coordinate is reseted before it is processing the histogram, FALSE otherwise. |
| cvbres_t LMGetSingleHistogramEntry | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| size_t | EntryIndex, | ||
| double * | pEntry | ||
| ) |
Get the number of pixels with a specific grey value in the selected area of a specific plane.
To determine number of pixels found for a single grey value use the grey value as index number for the function.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [in] | EntryIndex | Index (grey value) of the entry. |
| [out] | pEntry | Number of pixels for that index (grey value). |
| cvbres_t LMGetStatisticMax | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| double * | pMax | ||
| ) |
Get the maximum gray value in the selected area of a specific plane.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [out] | pMax | Maximum gray value. |
| cvbres_t LMGetStatisticMean | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| double * | pMean | ||
| ) |
Get the mean gray value in the selected area of a specific plane.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [out] | pMean | Mean gray value. |
| cvbres_t LMGetStatisticMin | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| double * | pMin | ||
| ) |
Get the minimum gray value in the selected area of a specific plane.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [out] | pMin | Minimum gray value. |
| cvbres_t LMGetStatisticMode | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| double * | pMode | ||
| ) |
Get the most common gray value in the selected area of a specific plane.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [out] | pMode | Most common gray value. |
| cvbres_t LMGetStatisticPixelInLimits | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| cvbuint32_t | LowerLimit, | ||
| cvbuint32_t | UpperLimit, | ||
| double * | pPixelInLimits | ||
| ) |
Get the number of pixels with a grey value between a lower and a upper limit in the selected area of a specific plane.
The minimum and the maximum value for the limits are determined by the data type of the image object (e.g. 0-255 for a 8 bit image).
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [in] | LowerLimit | Lower intensity limit. |
| [in] | UpperLimit | Upper intensity limit. |
| [out] | pPixelInLimits | Number of pixels between the limits. |
| cvbres_t LMGetStatisticStdDev | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| double * | pStdDev | ||
| ) |
Get he standard deviation of the gray values in the selected area of a specific plane.
The standard deviation is the square root of the variance. See LMGetStatisticVariance for more information.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [out] | pStdDev | Standard deviation. |
| cvbres_t LMGetStatisticTotal | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| double * | pTotal | ||
| ) |
Get the total number of pixels used by the LightMeter object to process the histogram and the statistic values for a specific plane.
The value depends on the Density set with the LMSetDensity function.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [out] | pTotal | Total number of pixels used for processing the histogram and the statistical values. |
| cvbres_t LMGetStatisticVariance | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| double * | pVariance | ||
| ) |
Get the variance of the gray values in the selected area of a specific plane.
The variance is calculated as follows:
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [out] | pVariance | Variance value. |
| cvbres_t LMGetStopWatch | ( | LMH | LMHandle, |
| cvbval_t | Index, | ||
| double * | pStopWatch | ||
| ) |
Measure the time between two subsequent calls to the function with the same index.
The index is used to start several stopwatch objects which measure different intervals.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | Index | Index of the stopwatch to read (0 - 49). More than one stopwatch can be used. |
| [out] | pStopWatch | Elapsed time between two subsequent calls to the function with the same index in milliseconds. |
| cvbres_t LMGetUseCSFlag | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| cvbbool_t * | pUseCSFlag | ||
| ) |
Checks if LightMeter is using the image coordinate system to process the histogram.
By default the image coordinate system is used when a new image is passed to the LightMeter object with the LMSetImage function. The image coordinate system can switched ON or OFF for each plane of the image.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [out] | pUseCSFlag | TRUE indicates that the image coordinate system is used, FALSE otherwise. |
| cvbres_t LMSetArea | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| TArea | Area | ||
| ) |
Set the area of a specific plane which the LightMeter object is using to process the histogram and the statistic values.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [in] | Area | Area of interest in the image plane. |
| cvbres_t LMSetDensity | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| cvbdensity_t | Density | ||
| ) |
Set the density used by the LightMeter object for the processing of the selected plane.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [in] | Density | Density for the selected plane used for processing. The range is 0 - 1000. |
| cvbres_t LMSetEntireImageFlag | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| cvbbool_t | EntireImageFlag | ||
| ) |
Specifies whether the LightMeter object is using the entire image for processing the histogram or the area selected by the LMSetArea function.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [in] | EntireImageFlag | TRUE indicates that the entire image is used for processing, FALSE otherwise. |
| cvbres_t LMSetImage | ( | LMH | LMHandle, |
| IMG | Image | ||
| ) |
| cvbres_t LMSetProcessFlag | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| cvbbool_t | ProcessFlag | ||
| ) |
Sets the process flag of a specific plane of the image.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [in] | ProcessFlag | TRUE means that the plane is used for processing, FALSE otherwise. |
| cvbres_t LMSetResetCSFlag | ( | LMH | LMHandle, |
| cvbbool_t | ResetCSFlag | ||
| ) |
Specifies if the LightMeter object is resetting the image coordinate system before it is processing the histogram or not.
By default the flag is set to FALSE when a new image is passed to the LightMeter object with the LMSetImage function.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | ResetCSFlag | TRUE if coordinate is reseted before it is processing the histogram, FALSE otherwise. |
| cvbres_t LMSetUseCSFlag | ( | LMH | LMHandle, |
| cvbdim_t | PlaneIndex, | ||
| cvbbool_t | UseCSFlag | ||
| ) |
Specifies if the image image coordinate system should be used to process the histogram.
By default the image coordinate system is used when a new image is passed to the LightMeter object with the LMSetImage function. The image coordinate system can switched ON or OFF for each plane of the image.
| [in] | LMHandle | Handle to LightMeter object. |
| [in] | PlaneIndex | Index of the plane to access between 0 and image dimensions - 1. |
| [in] | UseCSFlag | TRUE indicates that the image coordinate system should be used, FALSE otherwise. |