CImageCropProcessorComp.h
Go to the documentation of this file.
1 #ifndef iipr_CImageCropProcessorComp_included
2 #define iipr_CImageCropProcessorComp_included
3 
4 
5 // ACF-Solutions includes
6 #include <istd/ILogger.h>
7 
8 // ACF-Solutions includes
11 
12 
13 namespace iipr
14 {
15 
16 
21 {
22 public:
24 
25  I_BEGIN_COMPONENT(CImageCropProcessorComp);
26  I_END_COMPONENT;
27 
28  static bool DoImageCrop(
29  const iimg::IBitmap& inputBitmap,
30  const i2d::IObject2d& aoi,
31  iimg::IBitmap& outputBitmap,
32  istd::ILogger* loggerPtr = NULL);
33 
34 protected:
35  // reimplemented (CImageRegionProcessorCompBase)
36  virtual bool ProcessImageRegion(
37  const iimg::IBitmap& inputBitmap,
38  const iprm::IParamsSet* paramsPtr,
39  const i2d::IObject2d* aoiPtr,
40  istd::IChangeable* outputPtr) const;
41 };
42 
43 
44 } // namespace iipr
45 
46 
47 #endif // !iipr_CImageCropProcessorComp_included
48 
49 
virtual bool ProcessImageRegion(const iimg::IBitmap &inputBitmap, const iprm::IParamsSet *paramsPtr, const i2d::IObject2d *aoiPtr, istd::IChangeable *outputPtr) const
Process the defined image region.
static bool DoImageCrop(const iimg::IBitmap &inputBitmap, const i2d::IObject2d &aoi, iimg::IBitmap &outputBitmap, istd::ILogger *loggerPtr=NULL)
Basic implementation for a image region processor.
CImageRegionProcessorCompBase BaseClass
Processor for image cropping.

© 2007-2017 Witold Gantzke and Kirill Lepskiy