Impact Acquire SDK C++
|
mvVirtualDevice related camera settings(Device specific interface layout only). More...
#include <mvIMPACT_acquire.h>
Public Member Functions | |
CameraSettingsVirtualDevice (Device *pDev, const std::string &settingName="Base") | |
Constructs a new mvIMPACT::acquire::CameraSettingsVirtualDevice object. | |
HOBJ | hObj (void) const |
Returns a unique identifier for the component collection referenced by this object. | |
const ComponentCollection & | restoreDefault (void) const |
Restores the default for every component of this collection. | |
Public Attributes | |
PropertyI | aoiHeight |
An integer property defining the number of lines to capture. | |
PropertyICameraAoiMode | aoiMode |
An enumerated integer property defining the used AOI mode for the image capture. | |
PropertyI | aoiStartX |
An integer property defining the X-offset for each capture line. | |
PropertyI | aoiStartY |
An integer property defining the Y-offset. | |
PropertyI | aoiWidth |
An integer property defining the number of pixels to capture per line. | |
PropertyS | basedOn |
A string property (read-only) containing the name of the setting this setting is based on. | |
PropertyIBayerMosaicParity | bayerMosaicParity |
An enumerated integer property defining the Bayer attribute assigned to the generated test image. | |
PropertyI | bufferPartCount |
An integer property defining the number of buffer part to transmit in each request. | |
PropertyI | channelBitDepth |
An integer property defining the channel bit depth for certain test image generation modes. | |
PropertyI | frameDelay_us |
An integer property defining a delay in us before the 'captured' image is returned to the user. | |
PropertyF | gain_dB |
A float property defining the gain in dB to be applied to the test image. | |
PropertyS | imageDirectory |
A string property defining the directory to capture images from. | |
PropertyI | imageRequestTimeout_ms |
An integer property defining the maximum time to wait for an image in ms. | |
PropertyIVirtualDeviceImageType | imageType |
An enumerated integer property defining what images shall be captured from hard disk. | |
PropertyI | paddingX |
An integer property defining the padding(in bytes) in X-direction for certain test image generation modes. | |
PropertyIImageBufferPixelFormat | pixelFormat |
An enumerated integer property defining the pixel format used to transfer the image data into the target systems host memory. | |
PropertyICameraTapsXGeometry | tapsXGeometry |
An enumerated integer property defining the way this camera transmits the pixel data in X direction. | |
PropertyICameraTapsYGeometry | tapsYGeometry |
An enumerated integer property defining the way this camera transmits the pixel data in Y direction. | |
PropertyI | testImageBarWidth |
An integer property defining the width (in pixels) of the different bars in certain test modes. | |
PropertyIVirtualDeviceTestMode | testMode |
An enumerated integer property defining the test mode use to generate the dummy images. | |
PropertyS | userData |
A string property that will be copied into the user data property of each request. | |
Protected Attributes | |
HOBJ | m_hRoot |
mvVirtualDevice related camera settings(Device specific interface layout only).
|
inlineexplicit |
Constructs a new mvIMPACT::acquire::CameraSettingsVirtualDevice object.
[in] | pDev | A pointer to a mvIMPACT::acquire::Device object obtained from a mvIMPACT::acquire::DeviceManager object. |
[in] | settingName | The name of the driver internal setting to access with this instance. A list of valid setting names can be obtained by a call to mvIMPACT::acquire::FunctionInterface::getAvailableSettings, new settings can be created with the function mvIMPACT::acquire::FunctionInterface::createSetting |
|
inlineinherited |
Returns a unique identifier for the component collection referenced by this object.
This handle will always reference an object of type mvIMPACT::acquire::ComponentList.
|
inlineinherited |
Restores the default for every component of this collection.
Calling this function will restore the default value for every component belonging to this collection.
|
inherited |
An integer property defining the number of lines to capture.
PropertyICameraAoiMode aoiMode |
An enumerated integer property defining the used AOI mode for the image capture.
This feature will only be visible, when the property mvIMPACT::acquire::CameraSettingsVirtualDevice::testMode is set to mvIMPACT::acquire::vdtmImageDirectory. Then this property will allow to enforce a certain image dimension ( mvIMPACT::acquire::camUser ) or to capture every image file in its original dimensions ( mvIMPACT::acquire::camFull ). Valid values for this property are defined by the enumeration mvIMPACT::acquire::TCameraAoiMode.
|
inherited |
An integer property defining the X-offset for each capture line.
Example: When setting this property to 5 the first pixel in each line of the resulting image will be pixel number 5 of each line transmitted by the camera.
|
inherited |
An integer property defining the Y-offset.
Example: When setting this property to 5 the first line of the resulting image will be line number 5 of the image transmitted by the camera.
|
inherited |
An integer property defining the number of pixels to capture per line.
|
inherited |
A string property (read-only) containing the name of the setting this setting is based on.
PropertyIBayerMosaicParity bayerMosaicParity |
An enumerated integer property defining the Bayer attribute assigned to the generated test image.
When images are acquired via a directory, or a Bayer test pattern is generated this can be used to specify the Bayer parity. mvIMPACT::acquire::bmpUndefined will set the buffers Bayer attribute thus will result in a grey(mono) buffer being returned.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TBayerMosaicParity.
PropertyI bufferPartCount |
An integer property defining the number of buffer part to transmit in each request.
This property is meant to test the multi-part buffer feature of Impact Acquire mainly. When set to 0 multi-part buffer handling is switched off. When set to a value greater than 0 the virtual device will transmit data in multi-part mode, meaning that mvIMPACT::acquire::Request::getBufferPartCount() will return a value larger than zero. Only when this is the case the properties belonging to the individual buffer parts are guaranteed to contain up to date data while then all properties whose name starts with image
within that request might not.
PropertyI channelBitDepth |
An integer property defining the channel bit depth for certain test image generation modes.
When mvIMPACT::acquire::CameraSettingsBase::pixelFormat is NOT set to mvIMPACT::acquire::ibpfAuto, this this property will become invisible.
When mvIMPACT::acquire::CameraSettingsVirtualDevice::testMode is set to mvIMPACT::acquire::vdtmMovingMonoRamp, mvIMPACT::acquire::vdtmMovingBayerDataRamp or mvIMPACT::acquire::vdtmBayerWhiteBalanceTestImage this property will allow to define the pixel format for the test image.
PropertyI frameDelay_us |
An integer property defining a delay in us before the 'captured' image is returned to the user.
PropertyF gain_dB |
A float property defining the gain in dB to be applied to the test image.
The formula for given gain_dB
is
Example:
I.e. increasing the gain setting by 6dB corresponds to factor of 2.
The formula for given gain_x is
Where:
gain_dB:
Balluff gain value (logarithmic)
gain_x:
multiplicative gain
^
: power function
PropertyS imageDirectory |
A string property defining the directory to capture images from.
This feature will only be visible, when the property mvIMPACT::acquire::CameraSettingsVirtualDevice::testMode is set to mvIMPACT::acquire::vdtmImageDirectory.
See mvIMPACT::acquire::CameraSettingsVirtualDevice::imageType to find out how to configure what kind of images shall be captured from disk.
|
inherited |
An integer property defining the maximum time to wait for an image in ms.
When this property is set to 0 the timeout never elapses. If the timeout this property defines elapses the currently processed request will be returned to the user even if no data has been captured so far. The result structure of the request object should be examined in that case. Also this should be considered as an error from the users point of view in which case he should clean up the acquisition queue by calling mvIMPACT::acquire::FunctionInterface::imageRequestReset. Afterwards the capture loop can be restarted.
PropertyIVirtualDeviceImageType imageType |
An enumerated integer property defining what images shall be captured from hard disk.
This feature will only be visible, when the property mvIMPACT::acquire::CameraSettingsVirtualDevice::testMode is set to mvIMPACT::acquire::vdtmImageDirectory.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TVirtualDeviceImageType.
|
protectedinherited |
PropertyI paddingX |
An integer property defining the padding(in bytes) in X-direction for certain test image generation modes.
When mvIMPACT::acquire::CameraSettingsVirtualDevice::testMode is set to a mono format(not the weird packed ones!), mvIMPACT::acquire::vdtmMovingBayerDataRamp or mvIMPACT::acquire::vdtmBayerWhiteBalanceTestImage this property will allow to define the padding in bytes for each line. This will result in images where the line pitch differs from the width multiplied by the bytes per pixel value. E.g. a padding of 1 in X-direction and a width of 5 for a 16 bit mono format will result in a line pitch of 11 bytes(5*2 + 1).
|
inherited |
An enumerated integer property defining the pixel format used to transfer the image data into the target systems host memory.
Support for this property has been added in version 1.11.0 of Impact Acquire thus old driver versions will raise an exception if an application accesses the property without checking if the property is present.
By default this property will be set to mvIMPACT::acquire::ibpfAuto. This will result in the previous driver behaviour where depending on the various post processing steps that are enabled or disabled the driver will decide which transfer format will be used. However sometimes this could result in a transfer format, which is not ideal for the application (e.g. when a post processing step of the application needs RGBx888Packed but the systems bandwidth is limited the application might want to transfer the data in YUV422 packed and then use the fast format conversion algorithm in the driver). This can be achieved by explicitly setting mvIMPACT::acquire::CameraSettingsBase::pixelFormat to mvIMPACT::acquire::ibpfYUV422Packed and mvIMPACT::acquire::ImageDestination::pixelFormat to mvIMPACT::acquire::ibpfRGBx888Packed.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TImageBufferPixelFormat.
PropertyICameraTapsXGeometry tapsXGeometry |
An enumerated integer property defining the way this camera transmits the pixel data in X direction.
Within the virtual device driver, modifying this property internally will only attach the corresponding attribute to the request buffer, thus might result in the tap sort filter to process the data. This is mainly meant for testing purposes.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TCameraTapsXGeometry.
PropertyICameraTapsYGeometry tapsYGeometry |
An enumerated integer property defining the way this camera transmits the pixel data in Y direction.
Within the virtual device driver, modifying this property internally will only attach the corresponding attribute to the request buffer, thus might result in the tap sort filter to process the data. This is mainly meant for testing purposes.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TCameraTapsYGeometry.
PropertyI testImageBarWidth |
An integer property defining the width (in pixels) of the different bars in certain test modes.
PropertyIVirtualDeviceTestMode testMode |
An enumerated integer property defining the test mode use to generate the dummy images.
When mvIMPACT::acquire::CameraSettingsBase::pixelFormat is NOT set to mvIMPACT::acquire::ibpfAuto, this this property will become invisible.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TVirtualDeviceTestMode.
PropertyS userData |
A string property that will be copied into the user data property of each request.
This e.g. can be used to assign a certain identifier to each image request.