LightMeter Control Reference 14.0
Properties

Variables

double AreaX0
 The AreaX0 to AreaY2 properties determine the AOI of a single plane that is used for processing. These properties define the area in which the Tool works. If the EntireImage property is set to TRUE these values will be ignored and the complete image will be used instead for processing. More...
 
double AreaX1
 The AreaX0 to AreaY2 properties determine the AOI of a single plane that is used for processing. These properties define the area in which the Tool works. If the EntireImage property is set to TRUE these values will be ignored and the complete image will be used instead for processing. More...
 
double AreaX2
 The AreaX0 to AreaY2 properties determine the AOI of a single plane that is used for processing. These properties define the area in which the Tool works. If the EntireImage property is set to TRUE these values will be ignored and the complete image will be used instead for processing. More...
 
double AreaY0
 The AreaX0 to AreaY2 properties determine the AOI of a single plane that is used for processing. These properties define the area in which the Tool works. If the EntireImage property is set to TRUE these values will be ignored and the complete image will be used instead for processing. More...
 
double AreaY1
 The AreaX0 to AreaY2 properties determine the AOI of a single plane that is used for processing. These properties define the area in which the Tool works. If the EntireImage property is set to TRUE these values will be ignored and the complete image will be used instead for processing. More...
 
double AreaY2
 The AreaX0 to AreaY2 properties determine the AOI of a single plane that is used for processing. These properties define the area in which the Tool works. If the EntireImage property is set to TRUE these values will be ignored and the complete image will be used instead for processing. More...
 
__int3264 DataBuffer
 Determines the result data buffer of a specific plane of an image. The LightMeter Control generates a histogram for each plane of an image (only if the ProcessFlag property is TRUE for this plane) to calculate the statistic image information. If a user wants to use this data in his application the DataBuffer property gives access to the histogram data. The DataBufferEntries and the DataBufferEntrySize properties can be used to determine the size and data type of the data buffer. The user is responsible to access this data buffer correctly. It returns the start address of the data buffer. To get the result data buffer of a specific plane simply switch to the plane with the PlaneIndex property before you use the DataBuffer properties. More...
 
long DataBufferEntries
 Determines the number of entries in a result data buffer. To get the number of data buffer entries of a specific plane simply switch to the plane with the PlaneIndex property before you use the DataBufferEntries properties. More...
 
long DataBufferEntrySize
 Determines the size of a single data buffer entry of a result data buffer in bytes. To get the number of data buffer entries of a specific plane simply switch to the plane with the PlaneIndex property before you use the DataBufferEntrySize properties. More...
 
long DataType
 Returns the data type of the specified plane of an image. The individual bits of the data type are as follows:
. More...
 
long Density
 Determines the density used to process the data of a single plane. If an image has more than one plane the density can be different for each plane. This value influences the calculation of all statistical values as it determines the number of pixels used for calculation. To set or get the density of a specific plane simply switch to the plane with the PlaneIndex property before you use the Density property. To learn more about the density value please refer to the Common Vision Image Manager documentation. More...
 
__int3264 DGSList
 Determines the DGSList of an image. The LightMeter Control generates a DGSList data structure (Draw Graph Structure List). This simplifies the connection to a DrawGraph Control enormously. The LightMeter Control generates a DGS structure for each plane of an image. All together build a DGSList. To draw the results (data buffers) of a LightMeter Control simply connect the DGSList with the ConnectDGSList method of the DrawGraph Control to this tool. The data buffer of a plane is drawn only if the ProcessFlag property is TRUE for this plane. More...
 
BOOL EntireImage
 Determines if the tool is working on the entire image of a specific plane of an image. This parameter enables or disables if the hole image area is used for the calculation of any data of a specific plane. To change the setting for a specific plane switch to the plane with the PlaneIndex property before you use the EntireImage property. More...
 
OLE_COLOR GraphColor
 Determines the graph color for data buffer if the DGSList is connected to a DrawGraph Control. To simplify the drawing of the LightMeter Control data with a DrawGraph Control this property allows to set the graph color of the data buffer for each plane of a image independently. To set or get the graph color of a specific plane simply switch to the plane with the PlaneIndex property before you use the GraphColor property. More...
 
__int3264 Image
 Defines the image object that is assigned to the LightMeter Control. The image object manages the image information e. g. the images from hard disk or frame grabber. To learn more about the Image please refer to the Common Vision Image Manager documentation. More...
 
long ImageDimension
 Determines the dimension of an image. The value 1 stands for gray scale images the value 3 for true color images. Many functions expect as parameter an index to the plane to be processed. This value ranges from 0 to the image dimension-1. More...
 
long PlaneIndex
 Determines the plane of an image. Whenever a plane specific parameter (e.g. Density) has to be accessed the PlaneIndex property has to be changed to the specific plane first. More...
 
BOOL ProcessFlag
 Specifies the process flag of a specific plane of an image. This flag enables or disables the calculation of any data of a specific plane. If you have e.g. a RGB image but only the red plane should be processed simply disable the process flag of the green and blue plane. To set or get the process flag of a specific plane simply switch to the plane with the PlaneIndex property before you use the ProcessFlag property. More...
 
BOOL ResetCS
 Determines if the tool is resetting the image coordinate system before processing. This parameter enables or disables if the image coordinate system is reset before the calculation of any data. More...
 
double SVMax
 Determines the maximum gray value in the selected area of a specific plane. The SVMax property describes the maximum gray value in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). To get the maximum value of a specific plane simply switch to the plane with the PlaneIndex property before you use the SVMax property. More...
 
double SVMean
 Determines the mean gray value in the selected area of a specific plane. The SVMean property describes the mean gray value in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). To get the mean value of a specific plane simply switch to the plane with the PlaneIndex property before you use the SVMean property. More...
 
double SVMin
 Determines the minimum gray value in the selected area of a specific plane. The SVMin property describes the minimum gray value in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). To get the minimum value of a specific plane simply switch to the plane with the PlaneIndex property before you use the SVMin property. More...
 
double SVMode
 Determines the most common gray value in the selected area of a specific plane. The SVMode property describes the most common gray value in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). To get the mode value of a specific plane simply switch to the plane with the PlaneIndex property before you use the SVMode property. More...
 
double SVStdDev
 Determines the standard deviation of all pixels in the selected area of a specific plane. The SVStdDev property describes the standard deviation in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). The standard deviation is the square root of the variance. This is easier to use for make further calculations then the variance. To get the standard deviation of a specific plane simply switch to the plane with the PlaneIndex property before you use the SVStdDev property. More...
 
double SVTotal
 Determines the total number of pixels in the AOI used for computing the histogram. The SVTotal property describes the total number of pixels in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). This value depends on the Density property. If the density is not equal 1000 not all pixels in the selected area are used for the calculation of the statistical values. The total number of pixels is less then the theoretical number of pixels in an area of interest in this case. To get the total number of pixels in the AOI simply switch to the plane with the PlaneIndex property before you use the SVTotal property. More...
 
double SVVariance
 Determines the variance of all pixels in the selected area of a specific plane. The SVVariance property describes the variance in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). To get the variance of a specific plane simply switch to the plane with the PlaneIndex property before you use the SVVariance property.

The variance is calculated as follows:
. More...
 

Detailed Description

Variable Documentation

◆ AreaX0

double AreaX0

The AreaX0 to AreaY2 properties determine the AOI of a single plane that is used for processing. These properties define the area in which the Tool works. If the EntireImage property is set to TRUE these values will be ignored and the complete image will be used instead for processing.

Attention
If an Image has more than one plane the AOI can be different for each plane. To set or get the AOI of a specific plane simply switch to the plane with the PlaneIndex property before you use the AreaX0 to AreaY2 properties.
Parameters
[in,out]AreaX0X0-coordinate of the area of interest.
Returns
X0-coordinate of the area of interest.
Supported platforms:
Win32
Win64
Related Topics:
AreaX1, AreaX2, AreaY0, AreaY1, AreaY2

◆ AreaX1

double AreaX1

The AreaX0 to AreaY2 properties determine the AOI of a single plane that is used for processing. These properties define the area in which the Tool works. If the EntireImage property is set to TRUE these values will be ignored and the complete image will be used instead for processing.

Attention
If an Image has more than one plane the AOI can be different for each plane. To set or get the AOI of a specific plane simply switch to the plane with the PlaneIndex property before you use the AreaX0 to AreaY2 properties.
Parameters
[in,out]AreaX1X1-coordinate of the area of interest.
Returns
X1-coordinate of the area of interest.
Supported platforms:
Win32
Win64
Related Topics:
AreaX0, AreaX2, AreaY0, AreaY1, AreaY2

◆ AreaX2

double AreaX2

The AreaX0 to AreaY2 properties determine the AOI of a single plane that is used for processing. These properties define the area in which the Tool works. If the EntireImage property is set to TRUE these values will be ignored and the complete image will be used instead for processing.

Attention
If an Image has more than one plane the AOI can be different for each plane. To set or get the AOI of a specific plane simply switch to the plane with the PlaneIndex property before you use the AreaX0 to AreaY2 properties.
Parameters
[in,out]AreaX2X2-coordinate of the area of interest.
Returns
X2-coordinate of the area of interest.
Supported platforms:
Win32
Win64
Related Topics:
AreaX0, AreaX1, AreaY0, AreaY1, AreaY2

◆ AreaY0

double AreaY0

The AreaX0 to AreaY2 properties determine the AOI of a single plane that is used for processing. These properties define the area in which the Tool works. If the EntireImage property is set to TRUE these values will be ignored and the complete image will be used instead for processing.

Attention
If an Image has more than one plane the AOI can be different for each plane. To set or get the AOI of a specific plane simply switch to the plane with the PlaneIndex property before you use the AreaX0 to AreaY2 properties.
Parameters
[in,out]AreaY0Y0-coordinate of the area of interest.
Returns
Y0-coordinate of the area of interest.
Supported platforms:
Win32
Win64
Related Topics:
AreaX0, AreaX1, AreaX2, AreaY1, AreaY2

◆ AreaY1

double AreaY1

The AreaX0 to AreaY2 properties determine the AOI of a single plane that is used for processing. These properties define the area in which the Tool works. If the EntireImage property is set to TRUE these values will be ignored and the complete image will be used instead for processing.

Attention
If an Image has more than one plane the AOI can be different for each plane. To set or get the AOI of a specific plane simply switch to the plane with the PlaneIndex property before you use the AreaX0 to AreaY2 properties.
Parameters
[in,out]AreaY1Y1-coordinate of the area of interest.
Returns
Y1-coordinate of the area of interest.
Supported platforms:
Win32
Win64
Related Topics:
AreaX0, AreaX1, AreaX2, AreaY0, AreaY2

◆ AreaY2

double AreaY2

The AreaX0 to AreaY2 properties determine the AOI of a single plane that is used for processing. These properties define the area in which the Tool works. If the EntireImage property is set to TRUE these values will be ignored and the complete image will be used instead for processing.

Attention
If an Image has more than one plane the AOI can be different for each plane. To set or get the AOI of a specific plane simply switch to the plane with the PlaneIndex property before you use the AreaX0 to AreaY2 properties.
Parameters
[in,out]AreaY2Y2-coordinate of the area of interest.
Returns
Y2-coordinate of the area of interest.
Supported platforms:
Win32
Win64
Related Topics:
AreaX0, AreaX1, AreaX2, AreaY0, AreaY1

◆ DataBuffer

__int3264 DataBuffer
readonly

Determines the result data buffer of a specific plane of an image. The LightMeter Control generates a histogram for each plane of an image (only if the ProcessFlag property is TRUE for this plane) to calculate the statistic image information. If a user wants to use this data in his application the DataBuffer property gives access to the histogram data. The DataBufferEntries and the DataBufferEntrySize properties can be used to determine the size and data type of the data buffer. The user is responsible to access this data buffer correctly. It returns the start address of the data buffer. To get the result data buffer of a specific plane simply switch to the plane with the PlaneIndex property before you use the DataBuffer properties.

Attention
This buffer can not be accessed directly in Visual Basic.
Parameters
[out]DataBufferStart address of the data buffer.
Returns
Data buffer.
Supported platforms:
Win32
Win64

◆ DataBufferEntries

long DataBufferEntries

Determines the number of entries in a result data buffer. To get the number of data buffer entries of a specific plane simply switch to the plane with the PlaneIndex property before you use the DataBufferEntries properties.

Parameters
[out]DataBufferEntriesNumber of entries in the data buffer.
Returns
Number of entries in the data buffer.
Supported platforms:
Win32
Win64

◆ DataBufferEntrySize

long DataBufferEntrySize
readonly

Determines the size of a single data buffer entry of a result data buffer in bytes. To get the number of data buffer entries of a specific plane simply switch to the plane with the PlaneIndex property before you use the DataBufferEntrySize properties.

Parameters
[out]DataBufferEntrySizeSize of data buffer entry in bytes.
Returns
Size of data buffer entry in bytes.
Supported platforms:
Win32
Win64

◆ DataType

long DataType

Returns the data type of the specified plane of an image. The individual bits of the data type are as follows:
.

31 ... 1098766543 210
ReservedOFSBits/Pixel

Where
S = Signed
F = Float (only for 32 or 64 bits/pixel)
O = Overlay bit

An 8-bit unsigned image therefore has a data type of 8. For a signed 32-bit image it is 32 + 256, and for a double image it is 64 + 512.
The number of bits/pixel relates only to a plane of the image, the data type is therefore 8 for every plane of a 24-bit RGB image and NOT 24.

To get the data type of a specific plane simply switch to the plane with the PlaneIndex property before you use the DataType properties.

Parameters
[out]DataTypeData type of the specified plane.
Returns
Data type of the specified plane.
Supported platforms:
Win32
Win64

◆ Density

long Density

Determines the density used to process the data of a single plane. If an image has more than one plane the density can be different for each plane. This value influences the calculation of all statistical values as it determines the number of pixels used for calculation. To set or get the density of a specific plane simply switch to the plane with the PlaneIndex property before you use the Density property. To learn more about the density value please refer to the Common Vision Image Manager documentation.

Parameters
[in,out]DensityDensity in the range of 0-1000.
Returns
Density.
Supported platforms:
Win32
Win64

◆ DGSList

__int3264 DGSList
readonly

Determines the DGSList of an image. The LightMeter Control generates a DGSList data structure (Draw Graph Structure List). This simplifies the connection to a DrawGraph Control enormously. The LightMeter Control generates a DGS structure for each plane of an image. All together build a DGSList. To draw the results (data buffers) of a LightMeter Control simply connect the DGSList with the ConnectDGSList method of the DrawGraph Control to this tool. The data buffer of a plane is drawn only if the ProcessFlag property is TRUE for this plane.

Parameters
[out]DGSListDraw Graph Structure List.
Returns
Draw Graph Structure List.
Supported platforms:
Win32
Win64

◆ EntireImage

BOOL EntireImage

Determines if the tool is working on the entire image of a specific plane of an image. This parameter enables or disables if the hole image area is used for the calculation of any data of a specific plane. To change the setting for a specific plane switch to the plane with the PlaneIndex property before you use the EntireImage property.

Attention
If this property is set to TRUE the area passed by the AreaX0, AreaY0, AreaX1, AreaY1, AreaX2, AreaY2 properties is ignored and the complete image will be used instead for processing.
Parameters
[in,out]EntireImageTRUE indicates that the hole image area is used for processing, FALSE means that the selected area is used for processing.
Returns
TRUE indicates that the hole image area is used for processing, FALSE otherwise.
Supported platforms:
Win32
Win64

◆ GraphColor

OLE_COLOR GraphColor

Determines the graph color for data buffer if the DGSList is connected to a DrawGraph Control. To simplify the drawing of the LightMeter Control data with a DrawGraph Control this property allows to set the graph color of the data buffer for each plane of a image independently. To set or get the graph color of a specific plane simply switch to the plane with the PlaneIndex property before you use the GraphColor property.

Parameters
[in,out]GraphColorColor of a data buffer to draw (RGB-Value).
Returns
Color of a data buffer to draw (RGB-Value).
Supported platforms:
Win32
Win64

◆ Image

__int3264 Image

Defines the image object that is assigned to the LightMeter Control. The image object manages the image information e. g. the images from hard disk or frame grabber. To learn more about the Image please refer to the Common Vision Image Manager documentation.

Parameters
[in,out]ImageHandle of the image object.
Returns
Image object handle.
Supported platforms:
Win32
Win64

◆ ImageDimension

long ImageDimension

Determines the dimension of an image. The value 1 stands for gray scale images the value 3 for true color images. Many functions expect as parameter an index to the plane to be processed. This value ranges from 0 to the image dimension-1.

Parameters
[out]ImageDimensionDimension of the image.
Returns
Image dimension.
Supported platforms:
Win32
Win64

◆ PlaneIndex

long PlaneIndex

Determines the plane of an image. Whenever a plane specific parameter (e.g. Density) has to be accessed the PlaneIndex property has to be changed to the specific plane first.

Parameters
[in,out]PlaneIndexPlane index to access.
Returns
Current plane index.
Supported platforms:
Win32
Win64

◆ ProcessFlag

BOOL ProcessFlag

Specifies the process flag of a specific plane of an image. This flag enables or disables the calculation of any data of a specific plane. If you have e.g. a RGB image but only the red plane should be processed simply disable the process flag of the green and blue plane. To set or get the process flag of a specific plane simply switch to the plane with the PlaneIndex property before you use the ProcessFlag property.

Parameters
[in,out]ProcessFlagTRUE indicates that processing is enabled, otherwise FALSE.
Returns
TRUE indicates that processing is enabled, FALSE otherwise.
Supported platforms:
Win32
Win64

◆ ResetCS

BOOL ResetCS

Determines if the tool is resetting the image coordinate system before processing. This parameter enables or disables if the image coordinate system is reset before the calculation of any data.

Parameters
[in,out]ResetCSTRUE indicates that the coordinate system is reseted before processing, FALSE means that the coordinate system is not reseted.
Returns
TRUE indicates that the coordinate system is resetted before processing, FALSE otherwise.
Supported platforms:
Win32
Win64

◆ SVMax

double SVMax

Determines the maximum gray value in the selected area of a specific plane. The SVMax property describes the maximum gray value in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). To get the maximum value of a specific plane simply switch to the plane with the PlaneIndex property before you use the SVMax property.

Parameters
[out]SVMaxMaximum gray value.
Returns
Maximum gray value.
Supported platforms:
Win32
Win64

◆ SVMean

double SVMean

Determines the mean gray value in the selected area of a specific plane. The SVMean property describes the mean gray value in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). To get the mean value of a specific plane simply switch to the plane with the PlaneIndex property before you use the SVMean property.

Parameters
[out]SVMeanMean gray value of a specific plane in the selected area.
Returns
Mean gray value of a specific plane in the selected area.
Supported platforms:
Win32
Win64

◆ SVMin

double SVMin

Determines the minimum gray value in the selected area of a specific plane. The SVMin property describes the minimum gray value in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). To get the minimum value of a specific plane simply switch to the plane with the PlaneIndex property before you use the SVMin property.

Parameters
[out]SVMinMinimum gray value.
Returns
Minimum gray value.
Supported platforms:
Win32
Win64

◆ SVMode

double SVMode

Determines the most common gray value in the selected area of a specific plane. The SVMode property describes the most common gray value in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). To get the mode value of a specific plane simply switch to the plane with the PlaneIndex property before you use the SVMode property.

Parameters
[out]SVModeMost common gray value.
Returns
Most common gray value.
Supported platforms:
Win32
Win64

◆ SVStdDev

double SVStdDev

Determines the standard deviation of all pixels in the selected area of a specific plane. The SVStdDev property describes the standard deviation in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). The standard deviation is the square root of the variance. This is easier to use for make further calculations then the variance. To get the standard deviation of a specific plane simply switch to the plane with the PlaneIndex property before you use the SVStdDev property.

Parameters
[out]SVStdDevStandard deviation of all pixels.
Returns
Standard deviation of all pixels.
Supported platforms:
Win32
Win64

◆ SVTotal

double SVTotal

Determines the total number of pixels in the AOI used for computing the histogram. The SVTotal property describes the total number of pixels in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). This value depends on the Density property. If the density is not equal 1000 not all pixels in the selected area are used for the calculation of the statistical values. The total number of pixels is less then the theoretical number of pixels in an area of interest in this case. To get the total number of pixels in the AOI simply switch to the plane with the PlaneIndex property before you use the SVTotal property.

Parameters
[out]SVTotalTotal number of pixels in the AOI.
Returns
Total number of pixels in the AOI.
Supported platforms:
Win32
Win64

◆ SVVariance

double SVVariance

Determines the variance of all pixels in the selected area of a specific plane. The SVVariance property describes the variance in the selected area of a specific plane (only if the ProcessFlag property is TRUE for this plane). To get the variance of a specific plane simply switch to the plane with the PlaneIndex property before you use the SVVariance property.

The variance is calculated as follows:
.

Variance

 

 

 

Parameters
[out]SVVarianceVariance of all pixels.
Returns
Variance of all pixels.
Supported platforms:
Win32
Win64