Image Component Library (ICL)
|
00001 /******************************************************************** 00002 ** Image Component Library (ICL) ** 00003 ** ** 00004 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld ** 00005 ** Neuroinformatics Group ** 00006 ** Website: www.iclcv.org and ** 00007 ** http://opensource.cit-ec.de/projects/icl ** 00008 ** ** 00009 ** File : ICLGeom/src/ICLGeom/ObjectEdgeDetectorPlugin.h ** 00010 ** Module : ICLGeom ** 00011 ** Authors: Andre Ueckermann ** 00012 ** ** 00013 ** ** 00014 ** GNU LESSER GENERAL PUBLIC LICENSE ** 00015 ** This file may be used under the terms of the GNU Lesser General ** 00016 ** Public License version 3.0 as published by the ** 00017 ** ** 00018 ** Free Software Foundation and appearing in the file LICENSE.LGPL ** 00019 ** included in the packaging of this file. Please review the ** 00020 ** following information to ensure the license requirements will ** 00021 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt ** 00022 ** ** 00023 ** The development of this software was supported by the ** 00024 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. ** 00025 ** The Excellence Cluster EXC 277 is a grant of the Deutsche ** 00026 ** Forschungsgemeinschaft (DFG) in the context of the German ** 00027 ** Excellence Initiative. ** 00028 ** ** 00029 ********************************************************************/ 00030 00032 //Please use the ObjectEdgeDetector class. 00033 //This is the interface for the ObjectEdgeDetector implementations. 00034 00035 #pragma once 00036 00037 #include <ICLUtils/CompatMacros.h> 00038 #include <ICLGeom/GeomDefs.h> 00039 #include <ICLCore/Img.h> 00040 #include <ICLGeom/Camera.h> 00041 #include <ICLUtils/Uncopyable.h> 00042 #include <ICLCore/DataSegment.h> 00043 00044 namespace icl{ 00045 namespace geom{ 00046 class ObjectEdgeDetectorPlugin : public utils::Uncopyable{ 00047 00048 public: 00049 00050 virtual ~ObjectEdgeDetectorPlugin() {} 00051 00053 00059 virtual const core::Img8u &calculate(const core::Img32f &depthImage, bool filter, bool average, bool gauss)=0; 00060 00062 00063 virtual void setDepthImage(const core::Img32f &depthImg)=0; 00064 00066 00067 virtual void applyMedianFilter()=0; 00068 00070 00071 virtual const core::Img32f &getFilteredDepthImage()=0; 00072 00074 00076 virtual void setFilteredDepthImage(const core::Img32f &filteredImg)=0; 00077 00079 00081 virtual void applyNormalCalculation()=0; 00082 00084 00088 virtual void applyLinearNormalAveraging()=0; 00089 00091 00097 virtual void applyGaussianNormalSmoothing()=0; 00098 00100 00101 virtual const core::DataSegment<float,4> getNormals()=0; 00102 00104 00105 virtual void applyWorldNormalCalculation(const Camera &cam)=0; 00106 00108 00109 virtual const core::DataSegment<float,4> getWorldNormals()=0; 00110 00112 00113 virtual const core::Img8u &getRGBNormalImage()=0; 00114 00116 00118 virtual void setNormals(core::DataSegment<float,4> pNormals)=0; 00119 00121 00123 virtual void applyAngleImageCalculation()=0; 00124 00126 00127 virtual const core::Img32f &getAngleImage()=0; 00128 00130 00132 virtual void setAngleImage(const core::Img32f &angleImg)=0; 00133 00135 00136 virtual void applyImageBinarization()=0; 00137 00139 00140 virtual const core::Img8u &getBinarizedAngleImage()=0; 00141 00143 00145 virtual void setMedianFilterSize(int size)=0; 00146 00148 00150 virtual void setNormalCalculationRange(int range)=0; 00151 00153 00154 virtual void setNormalAveragingRange(int range)=0; 00155 00157 00159 virtual void setAngleNeighborhoodMode(int mode)=0; 00160 00162 00164 virtual void setAngleNeighborhoodRange(int range)=0; 00165 00167 00170 virtual void setBinarizationThreshold(float threshold)=0; 00171 00173 00175 virtual void setUseNormalAveraging(bool use)=0; 00176 00178 00180 virtual void setUseGaussSmoothing(bool use)=0; 00181 00183 00185 virtual bool isCLReady()=0; 00186 00187 virtual void initialize(utils::Size size)=0; 00188 00189 }; 00190 } 00191 } 00192