echo ---------------------------------------------
echo
CHECK_OPENCV
+AC_DEFINE_UNQUOTED(WITH_OPENCV,${WITH_OPENCV})
echo
echo ---------------------------------------------
#include <OCCViewer_ViewPort3d.h>
#include <OCCViewer_ViewWindow.h>
-#include <OCCViewer_ViewSketcher.h>
-#include <OCCViewer_FeatureDetector.h>
#include <OCCViewer_ViewManager.h>
#include <SOCC_ViewModel.h>
#include <EntityGUI.h>
#include <GEOMBase.h>
#include <GEOM_Object.hxx>
+#include <ShapeRec_FeatureDetector.hxx>
#include <SUIT_Desktop.h>
#include <SUIT_ResourceMgr.h>
return res;
// Build an instance of detection used to perform image processing operations
- OCCViewer_FeatureDetector* aDetector = new OCCViewer_FeatureDetector( theImgFileName );
+ ShapeRec_FeatureDetector* aDetector = new ShapeRec_FeatureDetector( theImgFileName );
int height = aDetector->GetImgHeight();
int width = aDetector->GetImgWidth();
+
+// NOTE: OLD
int winHeight = vp->height();
int winWidth = vp->width();
double x_offset, y_offset;
int i;
+// NOTE: OLD
// Recompute of the values computed in OCC OpenGl_view.c
// while waiting for a function to retrieve parameters of the displayed backgroun image
double hratio = winHeight * 1.0 / height;
#include <GEOMImpl_Types.hxx>
-#include <OCCViewer_FeatureDetector.h>
+#include <ShapeRec_FeatureDetector.hxx>
#include <QFileDialog>
if ( theImgFileName.isEmpty() )
return res;
- OCCViewer_FeatureDetector* aDetector = new OCCViewer_FeatureDetector( theImgFileName );
+ ShapeRec_FeatureDetector* aDetector = new ShapeRec_FeatureDetector( theImgFileName );
int height = aDetector->GetImgHeight();
int width = aDetector->GetImgWidth();
-I$(srcdir)/../GEOMImpl \
-I$(srcdir)/../GEOMFiltersSelection \
-I$(srcdir)/../SKETCHER \
+ -I$(srcdir)/../ShapeRecognition \
-I$(srcdir)/../GEOM \
-I$(top_builddir)/src/DlgRef \
-I$(top_builddir)/idl
../GEOMBase/libGEOMBase.la \
../SKETCHER/libGEOMSketcher.la \
../GEOMGUI/libGEOM.la \
+ ../ShapeRecognition/libGEOMShapeRec.la \
$(QT_MT_LIBS) \
$(CAS_TKTopAlgo) -lTKernel \
$(Opencv_libs)
STEPImport STLExport VTKExport ShHealOper GEOMImpl GEOM_I \
GEOMClient GEOM_I_Superv GEOM_SWIG GEOM_PY
+if WITH_OPENCV
+ SUBDIRS += ShapeRecognition
+endif
+
if GEOM_ENABLE_GUI
SUBDIRS += OBJECT DlgRef GEOMFiltersSelection GEOMGUI GEOMBase GEOMToolsGUI \
DisplayGUI BasicGUI PrimitiveGUI GenerationGUI EntityGUI BuildGUI \
GroupGUI BlocksGUI AdvancedGUI GEOM_SWIG_WITHIHM
endif
-if WITH_OPENCV
- SUBDIRS += ShapeRecognition
-endif
-
DIST_SUBDIRS = ARCHIMEDE NMTDS NMTTools GEOMAlgo SKETCHER OCC2VTK GEOM BREPExport\
BREPImport IGESExport IGESImport STEPExport STEPImport STLExport \
VTKExport ShHealOper GEOMImpl GEOM_I GEOMClient GEOM_I_Superv \