OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRgbToGreyFilter.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: ossimRgbToGreyFilter.h 20197 2011-11-03 13:22:02Z dburken $
12 #ifndef ossimRgbToGreyFilter_HEADER
13 #define ossimRgbToGreyFilter_HEADER
15 
17 {
18 public:
19  ossimRgbToGreyFilter(ossimObject* owner=NULL);
21  double c1 = 1.0/3.0,
22  double c2 = 1.0/3.0,
23  double c3 = 1.0/3.0);
25  ossimImageSource* inputSource,
26  double c1 = 1.0/3.0,
27  double c2 = 1.0/3.0,
28  double c3 = 1.0/3.0);
29 
30  virtual ossimString getShortName()const;
31  virtual ossimString getLongName()const;
32 
33  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tileRect,
34  ossim_uint32 resLevel=0);
35 
36  virtual void initialize();
37 
38  virtual ossimScalarType getOutputScalarType() const;
39 
41 
42  virtual bool saveState(ossimKeywordlist& kwl,
43  const char* prefix=0)const;
44 
49  virtual bool loadState(const ossimKeywordlist& kwl,
50  const char* prefix=0);
51 
52 protected:
53  virtual ~ossimRgbToGreyFilter();
54 
58  void allocate();
59 
62  void runUcharTransformation(ossimRefPtr<ossimImageData>& tile);
63  double theC1;
64  double theC2;
65  double theC3;
66 
68 };
69 
70 #endif /* #ifndef ossimRgbToGreyFilter_HEADER */
ossimRefPtr< ossimImageData > theBlankTile
#define OSSIMDLLEXPORT
Represents serializable keyword/value map.
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
ossimRefPtr< ossimImageData > theTile
virtual ossimString getShortName() const
Definition: ossimObject.cpp:48
#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.
virtual ossimString getLongName() const
Definition: ossimObject.cpp:53
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 ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)