eLynx SDK
v3.3.0 C++ image processing API reference |
00001 //============================================================================ 00002 // ImageMiscProcessingImpl.h Image.Component package 00003 //============================================================================ 00004 // Usage : image misceallenous processing interface implementation 00005 //---------------------------------------------------------------------------- 00006 // Copyright (C) 2007 by eLynx project 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU Library General Public 00010 // License as published by the Free Software Foundation; either 00011 // version 2 of the License, or (at your option) any later version. 00012 // 00013 // This library is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 // See the GNU Library General Public License for more details. 00017 //---------------------------------------------------------------------------- 00018 #ifndef __ImageMiscProcessingImpl_h__ 00019 #define __ImageMiscProcessingImpl_h__ 00020 00021 #include <elx/image/IImageMiscProcessing.h> 00022 00023 namespace eLynx { 00024 namespace Image { 00025 00029 00030 template <class Pixel> 00031 class ExportedByImage ImageMiscProcessingImpl : public IImageMiscProcessing 00032 { 00033 public: 00034 typedef typename Pixel::type T; 00035 00036 virtual bool ApplyDigitalDevelopment(AbstractImage& ioImage, 00037 double iBackground, double iCrossOver, double iScale, 00038 double iVariance, EColorEmphasis iEmphasis, 00039 uint32 iChannelMask, ProgressNotifier& iNotifier) const; 00040 /* 00041 virtual boost::shared_ptr<AbstractImage> ApplyChannelSubstitution( 00042 const AbstractImage& iHighResGrayImage, 00043 const AbstractImage& iLowResColorImage, 00044 EChannelSubstitution iSubstitution, double iBlendScalar, 00045 ProgressNotifier& iNotifier) const; 00046 */ 00047 virtual bool ApplyRotationalGradient(AbstractImage& ioImage, 00048 uint32 iXc, uint32 iYc, 00049 double iRadialShift, double iRotationalShift, bool ibInterpolation, 00050 uint32 iChannelMask, ProgressNotifier& iNotifier) const; 00051 00052 virtual bool RemoveGradient(AbstractImage& ioImage, AbstractImage& oBackground, 00053 const Math::Point2iList& iPoints, EGradientMethod iMethod, 00054 uint32 iChannelMask, ProgressNotifier& iNotifier) const; 00055 00056 virtual bool Debloom(AbstractImage& ioImage, 00057 uint32 iChannelMask, ProgressNotifier& iNotifier) const; 00058 00059 00062 static bool ApplyDigitalDevelopment(ImageImpl<Pixel>& ioImage, 00063 double iBackground, double iCrossOver, double iScale, 00064 double iVariance, EColorEmphasis iEmphasis, 00065 uint32 iChannelMask=CM_All, ProgressNotifier& iNotifier=ProgressNotifier_NULL); 00066 /* 00067 static boost::shared_ptr<AbstractImage> ApplyChannelSubstitution( 00068 const ImageImpl<Pixel>& iHighResGrayImage, 00069 const ImageImpl<Pixel>& iLowResColorImage, 00070 EChannelSubstitution iSubstitution, double iBlendScalar, 00071 ProgressNotifier& iNotifier); 00072 */ 00073 static bool ApplyRotationalGradient(ImageImpl<Pixel>& ioImage, 00074 uint32 iX, uint32 iY, 00075 double iRadialShift, double iDegrees, bool ibInterpolation = true, 00076 uint32 iChannelMask=CM_All, ProgressNotifier& iNotifier=ProgressNotifier_NULL); 00077 00078 static bool RemoveGradient(ImageImpl<Pixel>& ioImage, ImageImpl<Pixel>& oBackground, 00079 const Math::Point2iList& iPoints, EGradientMethod iMethod, 00080 uint32 iChannelMask=CM_All, ProgressNotifier& iNotifier=ProgressNotifier_NULL); 00081 00082 static bool Debloom(ImageImpl<Pixel>& ioImage, 00083 uint32 iChannelMask=CM_All, ProgressNotifier& iNotifier=ProgressNotifier_NULL); 00085 }; 00086 00087 } // namespace Image 00088 } // namespace eLynx 00089 00090 #endif // __ImageMiscProcessingImpl_h__