Manages a complete context for the EChecker2 golden template inspection tool. More...
#include <eVision/EasyObject/Legacy/EChecker2.h>
Public Member Functions | |
| EChecker2 () | |
| Constructs an uninitialized golden template inspection context. | |
| virtual | ~EChecker2 () throw () |
| void | SetTrainingMode (eVision::ETrainingMode mode) |
| Training mode. The training mode determines which process will be used to build the threshold images used for inspection. EChecker2 has two training modes: A Quick mode, efficent for crude defects and stable images, and a Precise mode, designed for more subtle defects and handling more variability in the images. Default: Precise training mode. | |
| eVision::ETrainingMode | GetTrainingMode () const |
| Training mode. The training mode determines which process will be used to build the threshold images used for inspection. EChecker2 has two training modes: A Quick mode, efficent for crude defects and stable images, and a Precise mode, designed for more subtle defects and handling more variability in the images. Default: Precise training mode. | |
| void | SetFiducialMatchingMode (eVision::Legacy::EFiducialMatchingMode mode) |
| Fiducial matching mode. This setting allow you to select which type of finder is used to locate the fiducials in the training and inspection images. It can either be geometric (as per EasyFind) or area-based (as per EasyMatch). Default: Geometric finder. | |
| eVision::Legacy::EFiducialMatchingMode | GetFiducialMatchingMode () const |
| Fiducial matching mode. This setting allow you to select which type of finder is used to locate the fiducials in the training and inspection images. It can either be geometric (as per EasyFind) or area-based (as per EasyMatch). Default: Geometric finder. | |
| eVision::ENormalizationMode | GetNormalizationMode () const |
| Normalization mode. This setting allows you to specify if you want to enable normalization, and if yes, which type. Normalization allows the training and inspection processes to automatically correct global illumination differences between the images. Default: Moments based normalization. | |
| void | SetNormalizationMode (eVision::ENormalizationMode mode) |
| Normalization mode. This setting allows you to specify if you want to enable normalization, and if yes, which type. Normalization allows the training and inspection processes to automatically correct global illumination differences between the images. Default: Moments based normalization. | |
| void | Initialize (const eVision::EROIBW8 &referenceImage, const std::vector< eVision::ERegion * > &fiducialRegions, const eVision::ERegion &inspectionRegion) |
| Initialize the training process. | |
| int | GetFiducialHorizontalTolerance () const |
| Horizontal positionning tolerance for fiducials. The fiducials in the training and inspection images will be searched around the position of the fiducial given during the initialization process, with a tolerance in pixels set by this parameter. The default value is 30 pixels. | |
| void | SetFiducialHorizontalTolerance (int tolerance) |
| Horizontal positionning tolerance for fiducials. The fiducials in the training and inspection images will be searched around the position of the fiducial given during the initialization process, with a tolerance in pixels set by this parameter. The default value is 30 pixels. | |
| int | GetFiducialVerticalTolerance () const |
| Vertical positionning tolerance for fiducials. The fiducials in the training and inspection images will be searched around the position of the fiducial given during the initialization process, with a tolerance in pixels set by this parameter. The default value is 30 pixels. | |
| void | SetFiducialVerticalTolerance (int tolerance) |
| Vertical positionning tolerance for fiducials. The fiducials in the training and inspection images will be searched around the position of the fiducial given during the initialization process, with a tolerance in pixels set by this parameter. The default value is 30 pixels. | |
| void | Train (const std::vector< const eVision::EROIBW8 * > &rois) |
| Train. | |
| void | AddTrainingImageFile (const std::string &path) |
| Add Training Image File. | |
| void | ClearTrainingImageFiles () |
| Clear Training Image Files. | |
| void | TrainFromImageFiles () |
| Train From Image Files. | |
| void | ResetTraining () |
| Reset training. Use this if you want to reset the state of the object without calling EChecker2::Initialize again. | |
| float | GetInspectionTolerance () const |
| Inspection Tolerance factor. If you need to be more tolerant towards noise, texture or illumination irregularities, raise this value. If you have clean images, low texture and some defects are missed, lower this value. Default value: 4.0. | |
| void | SetInspectionTolerance (float tolerance) |
| Inspection Tolerance factor. If you need to be more tolerant towards noise, texture or illumination irregularities, raise this value. If you have clean images, low texture and some defects are missed, lower this value. Default value: 4.0. | |
| void | Inspect (const eVision::EROIBW8 &roi, eVision::ECodedImage2 &defects) |
| Inspect. | |
| const eVision::EImageBW8 & | GetLowThresholdImage () const |
| Low threshold image. | |
| const eVision::EImageBW8 & | GetHighThresholdImage () const |
| High threshold image. | |
| const eVision::EImageBW8 & | GetLastRegisteredImage () const |
| Represents the last source image, after it has been aligned with the reference image and normalized. | |
| bool | GetIsInitialized () |
| Application state. Has the checker been initialized. | |
| bool | GetIsTrained () |
| Application state. Has the checker been trained. | |
| void | DrawReferenceSearchFields (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (eVision::EDrawAdapter *graphicContext, float zoomX) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (eVision::EDrawAdapter *graphicContext) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (HDC graphicContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (HDC graphicContext, float zoomX, float zoomY, float panX) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (HDC graphicContext, float zoomX, float zoomY) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (HDC graphicContext, float zoomX) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (HDC graphicContext) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (HDC graphicContext, const eVision::ERGBColor &color, float zoomX) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceSearchFields (HDC graphicContext, const eVision::ERGBColor &color) const |
| Draws the reference search fields overlay. | |
| void | DrawReferenceInspectionField (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (eVision::EDrawAdapter *graphicContext, float zoomX) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (eVision::EDrawAdapter *graphicContext) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (HDC graphicContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (HDC graphicContext, float zoomX, float zoomY, float panX) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (HDC graphicContext, float zoomX, float zoomY) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (HDC graphicContext, float zoomX) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (HDC graphicContext) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (HDC graphicContext, const eVision::ERGBColor &color, float zoomX) const |
| Draws the reference inspection field overlay. | |
| void | DrawReferenceInspectionField (HDC graphicContext, const eVision::ERGBColor &color) const |
| Draws the reference inspection field overlay. | |
| void | DrawInspectionField (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (eVision::EDrawAdapter *graphicContext, float zoomX) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (eVision::EDrawAdapter *graphicContext) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (HDC graphicContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (HDC graphicContext, float zoomX, float zoomY, float panX) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (HDC graphicContext, float zoomX, float zoomY) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (HDC graphicContext, float zoomX) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (HDC graphicContext) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (HDC graphicContext, const eVision::ERGBColor &color, float zoomX) const |
| Draws the inspection field overlay. | |
| void | DrawInspectionField (HDC graphicContext, const eVision::ERGBColor &color) const |
| Draws the inspection field overlay. | |
| void | Load (const std::string &file) |
| Load an inspection model. | |
| void | Load (eVision::ESerializer *serializer) |
| Load an inspection model. | |
| void | Save (eVision::ESerializer *serializer) |
| Save the inspection model. | |
| void | Save (const std::string &file) |
| Save the inspection model. | |
| EChecker2 (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Manages a complete context for the EChecker2 golden template inspection tool.
License(s): EasyObject
Use EChecker instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| eVision::Legacy::EChecker2::EChecker2 | ( | ) |
Constructs an uninitialized golden template inspection context.
|
virtual | ||||||||||||
| eVision::Legacy::EChecker2::EChecker2 | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::Legacy::EChecker2::AddTrainingImageFile | ( | const std::string & | path | ) |
Add Training Image File.
| path | Path to File. |
| void eVision::Legacy::EChecker2::ClearTrainingImageFiles | ( | ) |
Clear Training Image Files.
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | eVision::EDrawAdapter * | graphicContext | ) | const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | HDC | graphicContext | ) | const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | HDC | graphicContext, |
| float | zoomX ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawInspectionField | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | eVision::EDrawAdapter * | graphicContext | ) | const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | HDC | graphicContext | ) | const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | HDC | graphicContext, |
| float | zoomX ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceInspectionField | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the reference inspection field overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | eVision::EDrawAdapter * | graphicContext | ) | const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | HDC | graphicContext | ) | const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| color | Color in which to draw the overlay |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | HDC | graphicContext, |
| float | zoomX ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::Legacy::EChecker2::DrawReferenceSearchFields | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the reference search fields overlay.
| graphicContext | Device context of the drawing window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in true scale. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors). |
| panX | Horizontal panning factor. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| int eVision::Legacy::EChecker2::GetFiducialHorizontalTolerance | ( | ) | const |
Horizontal positionning tolerance for fiducials. The fiducials in the training and inspection images will be searched around the position of the fiducial given during the initialization process, with a tolerance in pixels set by this parameter. The default value is 30 pixels.
| eVision::Legacy::EFiducialMatchingMode eVision::Legacy::EChecker2::GetFiducialMatchingMode | ( | ) | const |
Fiducial matching mode. This setting allow you to select which type of finder is used to locate the fiducials in the training and inspection images. It can either be geometric (as per EasyFind) or area-based (as per EasyMatch). Default: Geometric finder.
| int eVision::Legacy::EChecker2::GetFiducialVerticalTolerance | ( | ) | const |
Vertical positionning tolerance for fiducials. The fiducials in the training and inspection images will be searched around the position of the fiducial given during the initialization process, with a tolerance in pixels set by this parameter. The default value is 30 pixels.
| const eVision::EImageBW8 & eVision::Legacy::EChecker2::GetHighThresholdImage | ( | ) | const |
High threshold image.
| float eVision::Legacy::EChecker2::GetInspectionTolerance | ( | ) | const |
Inspection Tolerance factor. If you need to be more tolerant towards noise, texture or illumination irregularities, raise this value. If you have clean images, low texture and some defects are missed, lower this value. Default value: 4.0.
| bool eVision::Legacy::EChecker2::GetIsInitialized | ( | ) |
Application state. Has the checker been initialized.
| bool eVision::Legacy::EChecker2::GetIsTrained | ( | ) |
Application state. Has the checker been trained.
| const eVision::EImageBW8 & eVision::Legacy::EChecker2::GetLastRegisteredImage | ( | ) | const |
Represents the last source image, after it has been aligned with the reference image and normalized.
| const eVision::EImageBW8 & eVision::Legacy::EChecker2::GetLowThresholdImage | ( | ) | const |
Low threshold image.
| eVision::ENormalizationMode eVision::Legacy::EChecker2::GetNormalizationMode | ( | ) | const |
Normalization mode. This setting allows you to specify if you want to enable normalization, and if yes, which type. Normalization allows the training and inspection processes to automatically correct global illumination differences between the images. Default: Moments based normalization.
If you have consistent illumination between your images, using normalization can prove detrimental, as in that case the defect themselves might be enough to shift the global contrast.
| eVision::ETrainingMode eVision::Legacy::EChecker2::GetTrainingMode | ( | ) | const |
Training mode. The training mode determines which process will be used to build the threshold images used for inspection. EChecker2 has two training modes: A Quick mode, efficent for crude defects and stable images, and a Precise mode, designed for more subtle defects and handling more variability in the images. Default: Precise training mode.
| void eVision::Legacy::EChecker2::Initialize | ( | const eVision::EROIBW8 & | referenceImage, |
| const std::vector< eVision::ERegion * > & | fiducialRegions, | ||
| const eVision::ERegion & | inspectionRegion ) |
Initialize the training process.
| referenceImage | ROI or Image used as the reference for the training process. |
| fiducialRegions | Regions of the fiducials used for the registration process. |
| inspectionRegion | Region used for the inspection process. |
| void eVision::Legacy::EChecker2::Inspect | ( | const eVision::EROIBW8 & | roi, |
| eVision::ECodedImage2 & | defects ) |
Inspect.
| roi | ROI or Image to inspect. |
| defects | List of defects returned by the inspection. |
| void eVision::Legacy::EChecker2::Load | ( | const std::string & | file | ) |
Load an inspection model.
| file | File path |
| void eVision::Legacy::EChecker2::Load | ( | eVision::ESerializer * | serializer | ) |
Load an inspection model.
| serializer | Serializer. Must be in read mode |
| void eVision::Legacy::EChecker2::ResetTraining | ( | ) |
Reset training. Use this if you want to reset the state of the object without calling EChecker2::Initialize again.
| void eVision::Legacy::EChecker2::Save | ( | const std::string & | file | ) |
Save the inspection model.
| file | File path |
| void eVision::Legacy::EChecker2::Save | ( | eVision::ESerializer * | serializer | ) |
Save the inspection model.
| serializer | Serializer. Must be in write mode |
| void eVision::Legacy::EChecker2::SetFiducialHorizontalTolerance | ( | int | tolerance | ) |
Horizontal positionning tolerance for fiducials. The fiducials in the training and inspection images will be searched around the position of the fiducial given during the initialization process, with a tolerance in pixels set by this parameter. The default value is 30 pixels.
| void eVision::Legacy::EChecker2::SetFiducialMatchingMode | ( | eVision::Legacy::EFiducialMatchingMode | mode | ) |
Fiducial matching mode. This setting allow you to select which type of finder is used to locate the fiducials in the training and inspection images. It can either be geometric (as per EasyFind) or area-based (as per EasyMatch). Default: Geometric finder.
| void eVision::Legacy::EChecker2::SetFiducialVerticalTolerance | ( | int | tolerance | ) |
Vertical positionning tolerance for fiducials. The fiducials in the training and inspection images will be searched around the position of the fiducial given during the initialization process, with a tolerance in pixels set by this parameter. The default value is 30 pixels.
| void eVision::Legacy::EChecker2::SetInspectionTolerance | ( | float | tolerance | ) |
Inspection Tolerance factor. If you need to be more tolerant towards noise, texture or illumination irregularities, raise this value. If you have clean images, low texture and some defects are missed, lower this value. Default value: 4.0.
| void eVision::Legacy::EChecker2::SetNormalizationMode | ( | eVision::ENormalizationMode | mode | ) |
Normalization mode. This setting allows you to specify if you want to enable normalization, and if yes, which type. Normalization allows the training and inspection processes to automatically correct global illumination differences between the images. Default: Moments based normalization.
If you have consistent illumination between your images, using normalization can prove detrimental, as in that case the defect themselves might be enough to shift the global contrast.
| void eVision::Legacy::EChecker2::SetTrainingMode | ( | eVision::ETrainingMode | mode | ) |
Training mode. The training mode determines which process will be used to build the threshold images used for inspection. EChecker2 has two training modes: A Quick mode, efficent for crude defects and stable images, and a Precise mode, designed for more subtle defects and handling more variability in the images. Default: Precise training mode.
| void eVision::Legacy::EChecker2::Train | ( | const std::vector< const eVision::EROIBW8 * > & | rois | ) |
Train.
| rois | ROI or Images to train on. |
| void eVision::Legacy::EChecker2::TrainFromImageFiles | ( | ) |
Train From Image Files.
| CppWrapperInternal::WrappedClass eVision::Legacy::EChecker2::wrappedClass_ |