DirectShow Sample Application: Machine Vision (Measurement,
Gauge, Quality Control)
The gauge sample demonstrates the use of the MV Gauge filter
and shows a possible application area of this filter. The user is
able to create areas of interest by clicking on the smart control
and to define thresholds which limit the allowed result of the
filter outputs. These results are visualized using LED and
display controls.
This and other sample applications can be found in the MV
Development Kit installation directory.
Filter Graph Summary
The filter graph configuration for the Gauge
sample contains a MV Camera
Undistortion filter to create a calibrated video stream
and the MV
Gauge filter for sub-pixel accurate measurement. For each of
the eight output pins of the MV Gauge filter
there are also two MV I/O Comparator
filters for the thresholds, a MV I/O
Logic filter, a MV I/O Not filter and
two MV I/O
Renderer filters for the results.
The Application
This sample consists of the main form and four dialogs. The
main form contains the smart control, eight LED controls, eight
display controls and a few check boxes and buttons to configure the
video output.
In the camera configuration dialog you can choose and setup the
video source, open a file for the MV Camera
Undistortion filter and change the units per pixel shown in die
display controls of the main form.
The gauge dialog is identic to the second property page of the
MV Gauge
filter. Here you can enable/disable the output pins of the filter
and choose which area of interests are used for each one.
In the I/O displays dialog it is possible to define the
prefixes/postfixes shown by the display controls and to change the
thresholds, which effects the LED controls.
With the remove dialog you can delete areas of
interest.
|