OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimImageToPlaneNormalFilter.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: ossimImageToPlaneNormalFilter.h 20078 2011-09-09 12:25:50Z gpotts $
12 #ifndef ossimImageToPlaneNormalFilter_HEADER
13 #define ossimImageToPlaneNormalFilter_HEADER
15 
17 {
18 public:
21 
22  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tileRect,
23  ossim_uint32 resLevel=0);
24 
25  virtual double getMinPixelValue(ossim_uint32 band=0)const;
26  virtual double getMaxPixelValue(ossim_uint32 band=0)const;
27 
28  virtual ossimScalarType getOutputScalarType() const;
29  virtual ossim_uint32 getNumberOfOutputBands() const;
30 
31  void setXScale(const double& scale);
32  void setYScale(const double& scale);
33 
34  double getXScale()const;
35  double getYScale()const;
36 
37  void setTrackScaleFlag(bool flag);
38  bool getTrackScaleFlag()const;
39 
40  void setSmoothnessFactor(double value);
41  double getSmoothnessFactor()const;
42 
43  bool loadState(const ossimKeywordlist& kwl,
44  const char* prefix);
45  bool saveState(ossimKeywordlist& kwl,
46  const char* prefix)const;
47  virtual void initialize();
48  /* ------------------- PROPERTY INTERFACE -------------------- */
49  virtual void setProperty(ossimRefPtr<ossimProperty> property);
50  virtual ossimRefPtr<ossimProperty> getProperty(const ossimString& name)const;
51  virtual void getPropertyNames(std::vector<ossimString>& propertyNames)const;
52  /* ------------------ PROPERTY INTERFACE END ------------------- */
53 
54 protected:
59  double theXScale;
60  double theYScale;
62 
63  void initializeTile();
64  virtual void computeNormals(ossimRefPtr<ossimImageData>& inputTile,
65  ossimRefPtr<ossimImageData>& outputTile);
66 
67  template <class T>
68  void computeNormalsTemplate(T inputScalarTypeDummy,
69  ossimRefPtr<ossimImageData>& inputTile,
70  ossimRefPtr<ossimImageData>& outputTile);
72 };
73 
74 #endif
virtual void setProperty(ossimRefPtr< ossimProperty > property)
#define OSSIMDLLEXPORT
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.
ossimRefPtr< ossimImageData > theTile
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.
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.
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
ossimRefPtr< ossimImageData > theBlankTile
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)