This file is indexed.

/usr/include/ossim/imaging/ossimMultiBandHistogramTileSource.h is in libossim-dev 2.2.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
//*******************************************************************
//
// License:  See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
//*************************************************************************
// $Id: ossimMultiBandHistogramTileSource.h 15766 2009-10-20 12:37:09Z gpotts $
#ifndef ossimMultiBandHistogramTileSource_HEADER
#define ossimMultiBandHistogramTileSource_HEADER
#include <ossim/imaging/ossimImageSourceHistogramFilter.h>
#include <vector>
class OSSIMDLLEXPORT ossimMultiBandHistogramTileSource : public ossimImageSourceHistogramFilter
{
public:
   enum ossimMultiBandHistogramAlgorithm
   {
      OSSIM_HISTOGRAM_NO_ALGORITHM             = 0,
      OSSIM_HISTOGRAM_LINEAR_STRETCH_ALGORITHM = 1
   };
   ossimMultiBandHistogramTileSource();
   ossimMultiBandHistogramTileSource(double minValuePercent,
                                  double maxValuePercent,
                                  ossimImageSource* inputSource,
                                  ossimMultiResLevelHistogram* histogram);
   virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tileRect,
                                               ossim_uint32 resLevel=0);

   virtual void setMinValuePercent(const std::vector<double>& arrayPercents)
      {
         theMinValuePercentArray = arrayPercents;
      }
   virtual void setMaxValuePercent(const std::vector<double>& arrayPercents)
      {
         theMaxValuePercentArray = arrayPercents;
      }
   virtual void setMinValuePercent(ossim_uint32 arrayIndex,
                                   double minValue)
      {
         if(arrayIndex < theMinValuePercentArray.size())
         {
            theMinValuePercentArray[arrayIndex] = minValue;
         }
      }
   virtual void setMaxValuePercent(ossim_uint32 arrayIndex,
                                   double maxValue)
      {
         if(arrayIndex < theMaxValuePercentArray.size())
         {
            theMaxValuePercentArray[arrayIndex] = maxValue;
         }
      }
   virtual double getMinValuePercent(ossim_uint32 arrayIndex)const
      {
         if(arrayIndex < theMinValuePercentArray.size())
         {
            return theMinValuePercentArray[arrayIndex];
         }
         return ossim::nan();
      }
   virtual double getMaxValuePercent(ossim_uint32 arrayIndex)const
      {
         if(arrayIndex < theMaxValuePercentArray.size())
         {
            return theMaxValuePercentArray[arrayIndex];
         }
         return ossim::nan();
      }
   virtual ossim_uint32 getNumberOfMinValues()const
      {
         return (ossim_uint32)theMinValuePercentArray.size();
      }
   virtual ossim_uint32 getNumberOfMaxValues()const
      {
         return (ossim_uint32)theMinValuePercentArray.size();
      }
   virtual void initialize();
      
   virtual bool loadState(const ossimKeywordlist& kwl,
                          const char* prefix=0);
   virtual bool saveState(ossimKeywordlist& kwl,
                          const char* prefix=0)const;
   
protected:
   virtual ~ossimMultiBandHistogramTileSource();

   void allocate();
   
   ossimRefPtr<ossimImageData>      theTile;
   ossimMultiBandHistogramAlgorithm theAlgorithm;
   std::vector<double>              theMinValuePercentArray;
   std::vector<double>              theMaxValuePercentArray;
   
   template <class T> ossimRefPtr<ossimImageData> runLinearStretchAlgorithm(
      T dummyVariable,
      ossimRefPtr<ossimImageData>& tile);

TYPE_DATA
};
#endif