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-2018 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 #ifndef _SO_PATTERN_MODEL_H_ 00021 #define _SO_PATTERN_MODEL_H_ 00022 #ifdef OIV_FEI_INTERNAL 00023 00024 #include <Inventor/fields/SoFieldContainer.h> 00025 #include <Inventor/fields/SoSFFloat.h> 00026 #include <Inventor/fields/SoSFInt32.h> 00027 #include <Inventor/fields/SoSFVec2f.h> 00028 #include <Inventor/fields/SoSFVec2i32.h> 00029 #include <Inventor/fields/SoMFVec2f.h> 00030 00031 #include <ImageViz/SoImageViz.h> 00032 00040 class SoPatternModel2d : public SoFieldContainer 00041 { 00042 SO_FIELDCONTAINER_HEADER( SoPatternModel2d ); 00043 public: 00044 00048 SoPatternModel2d(); 00049 00053 SoSFFloat gaussianKernelSize; 00054 00058 SoSFVec2f thresholdValues; 00059 00063 SoSFInt32 optimalPyramidDepth; 00064 00070 SoSFVec2f originReferenceCoordinateSystem; 00071 00077 SoSFFloat thetaCoordinateSystem; 00078 00083 SoMFVec2f edgePoints; 00084 00089 SoMFVec2f gradientPoints; 00090 00097 bool save( const SbString& filename, bool binary = true ) const; 00098 00104 bool load( const SbString& filename ); 00105 00106 private: 00108 virtual ~SoPatternModel2d(); 00109 }; 00110 00111 #endif // OIV_FEI_INTERNAL 00112 #endif //_SO_PATTERN_MODEL_H_ 00113 00114