/usr/include/ossim/base/ossimMultiBandHistogram.h is in libossim-dev 1.7.21-4.
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 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts (gpotts@imagelinks.com)
//
// Description:
//
//*******************************************************************
// $Id: ossimMultiBandHistogram.h 14789 2009-06-29 16:48:14Z dburken $
#ifndef ossimMultiBandHistogram_HEADER
#define ossimMultiBandHistogram_HEADER
#include <vector>
#include <ossim/base/ossimFilename.h>
#include <ossim/base/ossimRefPtr.h>
#include <ossim/base/ossimXmlNode.h>
#include <ossim/base/ossimReferenced.h>
class ossimHistogram;
class ossimKeywordlist;
class OSSIMDLLEXPORT ossimMultiBandHistogram : public ossimReferenced
{
public:
ossimMultiBandHistogram();
ossimMultiBandHistogram(const ossimMultiBandHistogram& rhs);
ossimMultiBandHistogram(long numberOfBands,
long numberOfBuckets,
float minValue,
float maxValue);
virtual ~ossimMultiBandHistogram();
void create(long numberOfBands,
long numberOfBuckets,
float minValue,
float maxValue);
ossim_uint32 getNumberOfBands() const;
void create(long numberOfBands);
void setBinCount(double binNumber, double count);
ossimRefPtr<ossimHistogram> getHistogram(long band);
const ossimRefPtr<ossimHistogram> getHistogram(long band)const;
ossimRefPtr<ossimMultiBandHistogram> createAccumulationLessThanEqual()const;
ossimRefPtr<ossimMultiBandHistogram> createAccumulationGreaterThanEqual()const;
/*!
* Imports a text file that has histogram data
*/
virtual bool importHistogram(const ossimFilename& inputFile);
virtual bool importHistogram(std::istream& in);
virtual bool loadState(const ossimKeywordlist& kwl,
const char* prefix = 0);
virtual bool saveState(ossimKeywordlist& kwl,
const char* prefix = 0)const;
virtual bool saveState(ossimRefPtr<ossimXmlNode> xmlNode)const;
virtual bool loadState(const ossimRefPtr<ossimXmlNode> xmlNode);
protected:
class ossimProprietaryHeaderInformation
{
public:
ossimProprietaryHeaderInformation(){clear();}
bool parseStream(std::istream& in);
ossim_uint32 getNumberOfBands()
{
return theNumberOfBands.toULong();
}
void clear()
{
theFileType = "";
theVersion = "";
theNumberOfBands = "";
}
ossimString theFileType;
ossimString theVersion;
ossimString theNumberOfBands;
};
/*!
* Holds the histograms for each band
*/
std::vector<ossimRefPtr<ossimHistogram> > theHistogramList;
void deleteHistograms();
bool parseProprietaryHistogram(std::istream& in);
};
#endif
|