CMapServer.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #include <stdlib.h>
00039 #include <time.h>
00040 #include <unistd.h>
00041 #include <fcntl.h>
00042 #include <sys/types.h>
00043 #include <sys/stat.h>
00044 #include <signal.h>
00045 #include "Image/ColorOps.H"
00046 #include "Image/MathOps.H"
00047 #include "Image/Image.H"
00048 #include "Image/ImageSet.H"
00049 #include "Image/Pixels.H"
00050 #include "Image/PyramidOps.H"
00051 #include "Image/ShapeOps.H"
00052 #include "Image/Transforms.H"
00053 #include "Image/fancynorm.H"
00054 #include "Util/Assert.H"
00055 #include "Util/Timer.H"
00056 #include "Util/Types.H"
00057 #include "Component/ModelManager.H"
00058 #include "Corba/Objects/CMapSK.hh"
00059 #include "Corba/ImageOrbUtil.H"
00060
00061
00062 class CMap_i : public POA_CMap ,
00063 public PortableServer::RefCountServantBase
00064 {
00065 public:
00066 inline CMap_i(){ saliencyMapLevel = 2; }
00067 virtual ~CMap_i(){}
00068 virtual ImageOrb* computeCMAP(const ImageOrb& img,
00069 const short ptyp, const float ori, const float coeff);
00070 virtual ImageOrb* computeCMAP2(const ImageOrb& img1, const ImageOrb& img2,
00071 const short ptyp, const float ori, const float coeff);
00072 virtual ImageOrb* computeFlickerCMAP(const ImageOrb& img,
00073 const short ptyp, const float ori, const float coeff);
00074
00075 virtual ImageOrb* computeBiasCMAP(const ImageOrb& img, const short ptyp,
00076 const float ori, const float coeff,
00077 const CMap::BiasSeq& bias);
00078
00079 virtual CMap::BiasSeq* getBiasCMAP(const ImageOrb& img, const short ptyp,
00080 const float ori, const float coeff, const Point2DOrb& loc);
00081
00082 virtual void setSaliencyMapLevel(const short sml);
00083 virtual void shutdown();
00084
00085 private:
00086 Image<float>* computeCMAP(const Image<float>& fimg,
00087 const PyramidType ptyp, const float ori, const float coeff);
00088 Image<float>* computeBiasCMAP(const Image<float>& fimg,
00089 const PyramidType ptyp, const float ori, const float coeff,
00090 const CMap::BiasSeq& bias);
00091
00092 short saliencyMapLevel;
00093 };
00094