Back to FabImage Library website
You are here: Start » Function Reference » MATRIX VISION » mvGenTLAcquire_GrabImage_WithTimeout
Header: | ThirdPartySdk.h |
---|---|
Namespace: | fil |
Captures a frame from MATRIX VISION cameras using mvGenTLAcquire SDK.
Syntax
bool fil::mvGenTLAcquire_GrabImage_WithTimeout ( mvGenTLAcquireState& ioState, ftl::Optional<const ftl::String&> inDeviceID, int inTimeout, fil::MVGenTLPixelFormat::Type inPixelFormat, ftl::Optional<int> inExposureTime, ftl::Optional<float> inGain, ftl::Optional<float> inFrameRate, ftl::Optional<const fil::Box&> inAoi, fil::MvIMPACTTriggerActivation::Type inTriggerMode, fil::MvIMPACTTriggerSource::Type inTriggerSource, ftl::Conditional<fil::Image>& outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioState | mvGenTLAcquireState& | Object used to maintain state of the function. | |||
![]() |
inDeviceID | Optional<const String&> | NIL | Device name or serial number of device | |
![]() |
inTimeout | int | 10 - ![]() |
Maximum time to wait for frame in milliseconds | |
![]() |
inPixelFormat | MVGenTLPixelFormat::Type | Pixel format of output image | ||
![]() |
inExposureTime | Optional<int> | 1 - +![]() |
NIL | Exposure time value |
![]() |
inGain | Optional<float> | NIL | Gain value | |
![]() |
inFrameRate | Optional<float> | 1.0 - ![]() |
NIL | Frame rate in FPS |
![]() |
inAoi | Optional<const Box&> | NIL | Required fragment of image to stream | |
![]() |
inTriggerMode | MvIMPACTTriggerActivation::Type | Trigger mode | ||
![]() |
inTriggerSource | MvIMPACTTriggerSource::Type | Source of trigger | ||
![]() |
outImage | Conditional<Image>& | Captured frame |
Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.