OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimFftFilter.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2000 ImageLinks Inc.
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: Garrett Potts
9 //
10 //*******************************************************************
11 // $Id: ossimFftFilter.h 15766 2009-10-20 12:37:09Z gpotts $
12 #ifndef ossimFftFilter_HEADER
13 #define ossimFftFilter_HEADER
15 
17 
19 {
20 public:
21  enum ossimFftFilterDirectionType { FORWARD = 0, INVERSE };
22 
23  ossimFftFilter(ossimObject* owner=NULL);
24  ossimFftFilter(ossimImageSource* inputSource);
26  ossimImageSource* inputSource);
28  ossim_uint32 resLevel=0);
29  virtual void initialize();
30  virtual ossim_uint32 getNumberOfOutputBands() const;
31  virtual double getMinPixelValue(ossim_uint32 band=0)const;
35  virtual double getMaxPixelValue(ossim_uint32 band=0)const;
40  virtual double getNullPixelValue(ossim_uint32 band=0)const;
41 
42  virtual ossimScalarType getOutputScalarType() const;
43 
44  void setForward();
45  void setInverse();
46  ossimString getDirectionTypeAsString()const;
47  void setDirectionType(const ossimString& directionType);
48  void setDirectionType(ossimFftFilterDirectionType directionType);
49 
50  virtual ossimRefPtr<ossimProperty> getProperty(const ossimString& name)const;
51  virtual void setProperty(ossimRefPtr<ossimProperty> property);
52  virtual void getPropertyNames(std::vector<ossimString>& propertyNames)const;
53 
54  virtual bool loadState(const ossimKeywordlist& kwl,
55  const char* prefix = 0);
56  virtual bool saveState(ossimKeywordlist& kwl,
57  const char* prefix = 0)const;
58 protected:
59  virtual ~ossimFftFilter();
63  virtual void runFft(ossimRefPtr<ossimImageData>& input,
65 
66  template <class T>
67  void fillMatrixForward(T *realPart,
68  T nullPix,
69  NEWMAT::Matrix& real,
70  NEWMAT::Matrix& img)const;
71  template <class T>
72  void fillMatrixInverse(T *realPart,
73  T *imgPart,
74  NEWMAT::Matrix& real,
75  NEWMAT::Matrix& img)const;
76 
77 
79 };
80 
81 #endif
virtual void setProperty(ossimRefPtr< ossimProperty > property)
Represents serializable keyword/value map.
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
virtual double getMinPixelValue(ossim_uint32 band=0) const
Returns the min pixel of the band.
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
#define TYPE_DATA
Definition: ossimRtti.h:339
unsigned int ossim_uint32
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
ossimRefPtr< ossimImageData > theTile
ossimRefPtr< ossimScalarRemapper > theScalarRemapper
ossimScalarType
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual double getMaxPixelValue(ossim_uint32 band=0) const
Returns the max pixel of the band.
#define OSSIM_DLL
ossimFftFilterDirectionType theDirectionType
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
virtual double getNullPixelValue(ossim_uint32 band=0) const
Each band has a null pixel associated with it.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)