Manages a complete context for the EChecker golden template inspection tool. More...
#include <eVision/EasyObject/EChecker/EChecker.h>
Public Member Functions | |
| EChecker () | |
| Constructs a golden template inspection context. | |
| EChecker (const eVision::EChecker &other) | |
| Constructs a golden template inspection context. | |
| virtual | ~EChecker () throw () |
| eVision::EChecker & | operator= (const eVision::EChecker &other) |
| Assignment operator. | |
| void | SetTrainingMode (eVision::ETrainingMode mode) |
| Training mode. The training mode determines which process will be used to build the threshold images used for inspection. EChecker has two training modes: A Quick mode, efficient 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. EChecker has two training modes: A Quick mode, efficient 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::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 | Train (const std::vector< const eVision::EROIBW8 * > &rois, const std::vector< eVision::EFrame > &frames, const eVision::ERegion &inspectionRegion) |
| Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance. | |
| void | Train (const std::vector< const eVision::EROIBW8 * > &rois, const std::vector< eVision::EFrame > &frames) |
| Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance. | |
| void | Train (const std::vector< const eVision::EROIBW8 * > &rois, const eVision::ERegion &inspectionRegion) |
| Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance. | |
| void | Train (const std::vector< const eVision::EROIBW8 * > &rois) |
| Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance. | |
| void | Train (const std::vector< eVision::EROIBW8 > &rois, const std::vector< eVision::EFrame > &frames, const eVision::ERegion &inspectionRegion) |
| Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance. | |
| void | Train (const std::vector< eVision::EROIBW8 > &rois, const std::vector< eVision::EFrame > &frames) |
| Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance. | |
| void | Train (const std::vector< eVision::EROIBW8 > &rois, const eVision::ERegion &inspectionRegion) |
| Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance. | |
| void | Train (const std::vector< eVision::EROIBW8 > &rois) |
| Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance. | |
| void | Train (const std::vector< eVision::EImageBW8 > &rois, const std::vector< eVision::EFrame > &frames, const eVision::ERegion &inspectionRegion) |
| Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance. | |
| void | Train (const std::vector< eVision::EImageBW8 > &rois, const std::vector< eVision::EFrame > &frames) |
| Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance. | |
| void | Train (const std::vector< eVision::EImageBW8 > &rois, const eVision::ERegion &inspectionRegion) |
| Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance. | |
| void | Train (const std::vector< eVision::EImageBW8 > &rois) |
| Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance. | |
| void | TrainOnSingleImage (const eVision::EROIBW8 &roi, eVision::EFrame &frame, const eVision::ERegion &inspectionRegion, uint32_t geometricTolerance, uint32_t grayLevelTolerance) |
| Train on a single image. At inspection, a pixel is validated if it is above "the smallest pixel in a geometricTolerance vicinity" - grayLevelTolerance and below "the biggest pixel in a geometricTolerance vicinity" + grayLevelTolerance. EChecker::GetInspectionTolerance and EChecker::SetTrainingMode are ignored by this method. | |
| void | TrainOnSingleImage (const eVision::EROIBW8 &roi, eVision::EFrame &frame, uint32_t geometricTolerance, uint32_t grayLevelTolerance) |
| Train on a single image. At inspection, a pixel is validated if it is above "the smallest pixel in a geometricTolerance vicinity" - grayLevelTolerance and below "the biggest pixel in a geometricTolerance vicinity" + grayLevelTolerance. EChecker::GetInspectionTolerance and EChecker::SetTrainingMode are ignored by this method. | |
| void | TrainOnSingleImage (const eVision::EROIBW8 &roi, const eVision::ERegion &inspectionRegion, uint32_t geometricTolerance, uint32_t grayLevelTolerance) |
| Train on a single image. At inspection, a pixel is validated if it is above "the smallest pixel in a geometricTolerance vicinity" - grayLevelTolerance and below "the biggest pixel in a geometricTolerance vicinity" + grayLevelTolerance. EChecker::GetInspectionTolerance and EChecker::SetTrainingMode are ignored by this method. | |
| void | TrainOnSingleImage (const eVision::EROIBW8 &roi, uint32_t geometricTolerance, uint32_t grayLevelTolerance) |
| Train on a single image. At inspection, a pixel is validated if it is above "the smallest pixel in a geometricTolerance vicinity" - grayLevelTolerance and below "the biggest pixel in a geometricTolerance vicinity" + grayLevelTolerance. EChecker::GetInspectionTolerance and EChecker::SetTrainingMode are ignored by this method. | |
| void | ResetTraining () |
| Reset training. Use this if you want to reset the state of the object. | |
| 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, const eVision::EFrame &frame, eVision::ECodedImage2 &defects) |
| Inspect the image. The defects are returned in the referential images aligned on the inspection region. See EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage and EChecker::GetLastRegisteredImage. | |
| void | Inspect (const eVision::EROIBW8 &roi, eVision::ECodedImage2 &defects) |
| Inspect the image. The defects are returned in the referential images aligned on the inspection region. See EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage and EChecker::GetLastRegisteredImage. | |
| 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. | |
| const eVision::ERegion & | GetInspectionRegion () const |
| Represents the inspection region, overlayed on EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage or EChecker::GetLastRegisteredImage. | |
| bool | GetIsTrained () const |
| Application state. Has the checker been trained. | |
| void | DrawInspectionRegion (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the inspection region on EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage or EChecker::GetLastRegisteredImage. | |
| void | DrawInspectionRegion (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX) const |
| Draws the inspection region on EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage or EChecker::GetLastRegisteredImage. | |
| void | DrawInspectionRegion (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY) const |
| Draws the inspection region on EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage or EChecker::GetLastRegisteredImage. | |
| void | DrawInspectionRegion (eVision::EDrawAdapter *graphicContext, float zoomX) const |
| Draws the inspection region on EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage or EChecker::GetLastRegisteredImage. | |
| void | DrawInspectionRegion (eVision::EDrawAdapter *graphicContext) const |
| Draws the inspection region on EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage or EChecker::GetLastRegisteredImage. | |
| 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. | |
| EChecker (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Manages a complete context for the EChecker golden template inspection tool.
License(s): EasyObject
| eVision::EChecker::EChecker | ( | ) |
Constructs a golden template inspection context.
| eVision::EChecker::EChecker | ( | const eVision::EChecker & | other | ) |
Constructs a golden template inspection context.
| other | The EChecker to copy into this one. |
|
virtual | ||||||||||||
| eVision::EChecker::EChecker | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::EChecker::DrawInspectionRegion | ( | eVision::EDrawAdapter * | graphicContext | ) | const |
Draws the inspection region on EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage or EChecker::GetLastRegisteredImage.
| graphicContext | Device context of the drawing window. |
| void eVision::EChecker::DrawInspectionRegion | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX ) const |
Draws the inspection region on EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage or EChecker::GetLastRegisteredImage.
| 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::EChecker::DrawInspectionRegion | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the inspection region on EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage or EChecker::GetLastRegisteredImage.
| 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::EChecker::DrawInspectionRegion | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the inspection region on EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage or EChecker::GetLastRegisteredImage.
| 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::EChecker::DrawInspectionRegion | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the inspection region on EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage or EChecker::GetLastRegisteredImage.
| 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. |
| const eVision::EImageBW8 & eVision::EChecker::GetHighThresholdImage | ( | ) | const |
High threshold image.
| const eVision::ERegion & eVision::EChecker::GetInspectionRegion | ( | ) | const |
Represents the inspection region, overlayed on EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage or EChecker::GetLastRegisteredImage.
| float eVision::EChecker::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::EChecker::GetIsTrained | ( | ) | const |
Application state. Has the checker been trained.
| const eVision::EImageBW8 & eVision::EChecker::GetLastRegisteredImage | ( | ) | const |
Represents the last source image, after it has been aligned with the reference image and normalized.
| const eVision::EImageBW8 & eVision::EChecker::GetLowThresholdImage | ( | ) | const |
Low threshold image.
| eVision::ENormalizationMode eVision::EChecker::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::EChecker::GetTrainingMode | ( | ) | const |
Training mode. The training mode determines which process will be used to build the threshold images used for inspection. EChecker has two training modes: A Quick mode, efficient 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::EChecker::Inspect | ( | const eVision::EROIBW8 & | roi, |
| const eVision::EFrame & | frame, | ||
| eVision::ECodedImage2 & | defects ) |
Inspect the image. The defects are returned in the referential images aligned on the inspection region. See EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage and EChecker::GetLastRegisteredImage.
Frame is assumed to be a default frame when not specified.
| roi | ROI or Image to inspect. |
| frame | Frame relative to roi. |
| defects | List of defects returned by the inspection. |
| void eVision::EChecker::Inspect | ( | const eVision::EROIBW8 & | roi, |
| eVision::ECodedImage2 & | defects ) |
Inspect the image. The defects are returned in the referential images aligned on the inspection region. See EChecker::GetLowThresholdImage, EChecker::GetHighThresholdImage and EChecker::GetLastRegisteredImage.
Frame is assumed to be a default frame when not specified.
| roi | ROI or Image to inspect. |
| defects | List of defects returned by the inspection. |
| void eVision::EChecker::Load | ( | const std::string & | file | ) |
Load an inspection model.
| file | File path |
| void eVision::EChecker::Load | ( | eVision::ESerializer * | serializer | ) |
Load an inspection model.
| serializer | Serializer. Must be in read mode |
| eVision::EChecker & eVision::EChecker::operator= | ( | const eVision::EChecker & | other | ) |
Assignment operator.
| other | The EChecker to copy into this one. |
| void eVision::EChecker::ResetTraining | ( | ) |
Reset training. Use this if you want to reset the state of the object.
| void eVision::EChecker::Save | ( | const std::string & | file | ) |
Save the inspection model.
| file | File path |
| void eVision::EChecker::Save | ( | eVision::ESerializer * | serializer | ) |
Save the inspection model.
| serializer | Serializer. Must be in write mode |
| void eVision::EChecker::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::EChecker::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::EChecker::SetTrainingMode | ( | eVision::ETrainingMode | mode | ) |
Training mode. The training mode determines which process will be used to build the threshold images used for inspection. EChecker has two training modes: A Quick mode, efficient 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::EChecker::Train | ( | const std::vector< const eVision::EROIBW8 * > & | rois | ) |
Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance.
Frames argument is assumed to be default frames if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| rois | ROI or Images to train on. |
| void eVision::EChecker::Train | ( | const std::vector< const eVision::EROIBW8 * > & | rois, |
| const eVision::ERegion & | inspectionRegion ) |
Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance.
Frames argument is assumed to be default frames if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| rois | ROI or Images to train on. |
| inspectionRegion | Region used for the inspection process. |
| void eVision::EChecker::Train | ( | const std::vector< const eVision::EROIBW8 * > & | rois, |
| const std::vector< eVision::EFrame > & | frames ) |
Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance.
Frames argument is assumed to be default frames if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| rois | ROI or Images to train on. |
| frames | Frames that correspond to each of the rois. |
| void eVision::EChecker::Train | ( | const std::vector< const eVision::EROIBW8 * > & | rois, |
| const std::vector< eVision::EFrame > & | frames, | ||
| const eVision::ERegion & | inspectionRegion ) |
Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance.
Frames argument is assumed to be default frames if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| rois | ROI or Images to train on. |
| frames | Frames that correspond to each of the rois. |
| inspectionRegion | Region used for the inspection process. |
| void eVision::EChecker::Train | ( | const std::vector< eVision::EImageBW8 > & | rois | ) |
Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance.
Frames argument is assumed to be default frames if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| rois | ROI or Images to train on. |
| void eVision::EChecker::Train | ( | const std::vector< eVision::EImageBW8 > & | rois, |
| const eVision::ERegion & | inspectionRegion ) |
Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance.
Frames argument is assumed to be default frames if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| rois | ROI or Images to train on. |
| inspectionRegion | Region used for the inspection process. |
| void eVision::EChecker::Train | ( | const std::vector< eVision::EImageBW8 > & | rois, |
| const std::vector< eVision::EFrame > & | frames ) |
Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance.
Frames argument is assumed to be default frames if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| rois | ROI or Images to train on. |
| frames | Frames that correspond to each of the rois. |
| void eVision::EChecker::Train | ( | const std::vector< eVision::EImageBW8 > & | rois, |
| const std::vector< eVision::EFrame > & | frames, | ||
| const eVision::ERegion & | inspectionRegion ) |
Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance.
Frames argument is assumed to be default frames if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| rois | ROI or Images to train on. |
| frames | Frames that correspond to each of the rois. |
| inspectionRegion | Region used for the inspection process. |
| void eVision::EChecker::Train | ( | const std::vector< eVision::EROIBW8 > & | rois | ) |
Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance.
Frames argument is assumed to be default frames if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| rois | ROI or Images to train on. |
| void eVision::EChecker::Train | ( | const std::vector< eVision::EROIBW8 > & | rois, |
| const eVision::ERegion & | inspectionRegion ) |
Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance.
Frames argument is assumed to be default frames if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| rois | ROI or Images to train on. |
| inspectionRegion | Region used for the inspection process. |
| void eVision::EChecker::Train | ( | const std::vector< eVision::EROIBW8 > & | rois, |
| const std::vector< eVision::EFrame > & | frames ) |
Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance.
Frames argument is assumed to be default frames if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| rois | ROI or Images to train on. |
| frames | Frames that correspond to each of the rois. |
| void eVision::EChecker::Train | ( | const std::vector< eVision::EROIBW8 > & | rois, |
| const std::vector< eVision::EFrame > & | frames, | ||
| const eVision::ERegion & | inspectionRegion ) |
Train. The distribution of noise is estimated for each pixel based on the training images. At inspection, a pixel is validated it if is close enough to the average value on the training set. The size of that interval is proportional to EChecker::GetInspectionTolerance.
Frames argument is assumed to be default frames if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| rois | ROI or Images to train on. |
| frames | Frames that correspond to each of the rois. |
| inspectionRegion | Region used for the inspection process. |
| void eVision::EChecker::TrainOnSingleImage | ( | const eVision::EROIBW8 & | roi, |
| const eVision::ERegion & | inspectionRegion, | ||
| uint32_t | geometricTolerance, | ||
| uint32_t | grayLevelTolerance ) |
Train on a single image. At inspection, a pixel is validated if it is above "the smallest pixel in a geometricTolerance vicinity" - grayLevelTolerance and below "the biggest pixel in a geometricTolerance vicinity" + grayLevelTolerance. EChecker::GetInspectionTolerance and EChecker::SetTrainingMode are ignored by this method.
Frame argument is assumed to be a default frame if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| roi | ROI or Image to train on. |
| inspectionRegion | Region used for the inspection process. |
| geometricTolerance | Tolerance in geometric space (in pixels). |
| grayLevelTolerance | Tolerance in gray level space. |
| void eVision::EChecker::TrainOnSingleImage | ( | const eVision::EROIBW8 & | roi, |
| eVision::EFrame & | frame, | ||
| const eVision::ERegion & | inspectionRegion, | ||
| uint32_t | geometricTolerance, | ||
| uint32_t | grayLevelTolerance ) |
Train on a single image. At inspection, a pixel is validated if it is above "the smallest pixel in a geometricTolerance vicinity" - grayLevelTolerance and below "the biggest pixel in a geometricTolerance vicinity" + grayLevelTolerance. EChecker::GetInspectionTolerance and EChecker::SetTrainingMode are ignored by this method.
Frame argument is assumed to be a default frame if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| roi | ROI or Image to train on. |
| frame | Frame that correspond to the roi. |
| inspectionRegion | Region used for the inspection process. |
| geometricTolerance | Tolerance in geometric space (in pixels). |
| grayLevelTolerance | Tolerance in gray level space. |
| void eVision::EChecker::TrainOnSingleImage | ( | const eVision::EROIBW8 & | roi, |
| eVision::EFrame & | frame, | ||
| uint32_t | geometricTolerance, | ||
| uint32_t | grayLevelTolerance ) |
Train on a single image. At inspection, a pixel is validated if it is above "the smallest pixel in a geometricTolerance vicinity" - grayLevelTolerance and below "the biggest pixel in a geometricTolerance vicinity" + grayLevelTolerance. EChecker::GetInspectionTolerance and EChecker::SetTrainingMode are ignored by this method.
Frame argument is assumed to be a default frame if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| roi | ROI or Image to train on. |
| frame | Frame that correspond to the roi. |
| geometricTolerance | Tolerance in geometric space (in pixels). |
| grayLevelTolerance | Tolerance in gray level space. |
| void eVision::EChecker::TrainOnSingleImage | ( | const eVision::EROIBW8 & | roi, |
| uint32_t | geometricTolerance, | ||
| uint32_t | grayLevelTolerance ) |
Train on a single image. At inspection, a pixel is validated if it is above "the smallest pixel in a geometricTolerance vicinity" - grayLevelTolerance and below "the biggest pixel in a geometricTolerance vicinity" + grayLevelTolerance. EChecker::GetInspectionTolerance and EChecker::SetTrainingMode are ignored by this method.
Frame argument is assumed to be a default frame if not specified (no transformation performed). Inspection region is assumed to be the whole image when not specified.
| roi | ROI or Image to train on. |
| geometricTolerance | Tolerance in geometric space (in pixels). |
| grayLevelTolerance | Tolerance in gray level space. |
| CppWrapperInternal::WrappedClass eVision::EChecker::wrappedClass_ |