00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 #ifndef _SO_PATTERN_MATCHER_2D_PROCESSING_H_ 00021 #define _SO_PATTERN_MATCHER_2D_PROCESSING_H_ 00022 #ifdef OIV_FEI_INTERNAL 00023 00024 #include <Inventor/SbVec.h> 00025 00026 #include <Inventor/Fields/SoSFFloat.h> 00027 #include <Inventor/Fields/SoSFInt32.h> 00028 #include <Inventor/Fields/SoSFVec2d.h> 00029 #include <Inventor/Fields/SoSFVec2f.h> 00030 #include <Inventor/Fields/SoSFVec2i32.h> 00031 #include <Inventor/Fields/SoSFBool.h> 00032 #include <Inventor/Fields/SoSFEnum.h> 00033 00034 #include <ImageViz/SoImageViz.h> 00035 #include <ImageViz/Engines/SoImageVizEngine.h> 00036 #include <ImageViz/Engines/SoSubImageVizEngine.h> 00037 #include <ImageViz/Engines/SoImageVizEngineAnalysisOutput.h> 00038 #include <ImageViz/Fields/SoSFImageDataAdapter.h> 00039 #include <ImageViz/Fields/SoSFPatternModel2d.h> 00040 #include <ImageViz/Fields/SoSFPatternMatchingDetails2d.h> 00041 00048 class SoPatternMatcher2dProcessing : public SoImageVizEngine 00049 { 00050 00051 SO_IMAGEVIZ_ENGINE_HEADER( SoPatternMatcher2dProcessing ); 00052 00053 public: 00055 SoPatternMatcher2dProcessing(); 00056 00058 enum SimilarityMeasure 00059 { 00065 POSITIVE = 0, 00071 NEGATIVE, 00077 CONTRAST_INVARIANT 00078 }; 00079 00083 enum TransformationType 00084 { 00089 ISOTROPIC_SCALING = 0, 00093 ANISOTROPIC_SCALING 00094 }; 00095 00099 SoSFPatternModel2d patternModel; 00100 00104 SoSFImageDataAdapter inputImage; 00105 00110 SoSFInt32 numOfObjects; 00111 00115 SoSFVec2d thetaRange; 00116 00120 SoSFVec2d scaleXRange; 00121 00125 SoSFVec2d scaleYRange; 00126 00132 SoSFVec2i32 positionXRange; 00133 00139 SoSFVec2i32 positionYRange; 00140 00145 SoSFBool enablePositionRange; 00146 00150 SoSFEnum transformationType; 00151 00155 SoSFEnum similarityMeasure; 00156 00164 SoSFInt32 numOfLevel; 00165 00171 SoSFBool autoPyramid; 00172 00178 SoSFFloat thresholdOnLowGradientMagnitude; 00179 00184 SoSFFloat minimumSimilarityScore; 00185 00191 SoSFFloat overlapTolerance; 00192 00196 SoImageVizEngineOutput<SoSFPatternMatchingDetails2d, SoPatternMatchingDetails2d*> outMatches; 00197 00198 private: 00200 virtual ~SoPatternMatcher2dProcessing(); 00201 }; 00202 00203 #endif // OIV_FEI_INTERNAL 00204 #endif // _SO_PATTERN_MATCHER_2D_PROCESSING_H_ 00205