/usr/include/ossim/imaging/ossimHistoMatchRemapper.h is in libossim-dev 1.7.21-3ubuntu2.
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 | //*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Garrett Potts
//
//*******************************************************************
// $Id: ossimHistoMatchRemapper.h 9094 2006-06-13 19:12:40Z dburken $
#ifndef ossimHistoMatchRemapper_HEADER
#define ossimHistoMatchRemapper_HEADER
#include <vector>
using namespace std;
#include <ossim/imaging/ossimImageSourceFilter.h>
class ossimHistoMatchRemapper: public ossimImageSourceFilter
{
public:
ossimHistoMatchRemapper();
ossimHistoMatchRemapper(ossimImageSource* inputSource,
const vector<double>& targetMeanPerBand = vector<double>(),
const vector<double>& targetSigmaPerBand = vector<double>(),
const vector<double>& inputMeanPerBand = vector<double>(),
const vector<double>& inputSigmaPerBand = vector<double>()
);
virtual ~ossimHistoMatchRemapper();
virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tileRect,
ossim_uint32 resLevel=0);
virtual void initialize();
const vector<double>& getInputMeanValues()const;
const vector<double>& getInputSigmaValues()const;
const vector<double>& getTargetMeanValues()const;
const vector<double>& getTargetSigmaValues()const;
void setInputMeanValues(const vector<double>& newValues);
void setInputSigmaValues(const vector<double>& newValues);
void setTargetMeanValues(const vector<double>& newValues);
void setTargetSigmaValues(const vector<double>& newValues);
virtual bool loadState(const ossimKeywordlist& kwl,
const char* prefix=NULL);
virtual bool saveState(ossimKeywordlist& kwl,
const char* prefix=NULL);
protected:
ossimRefPtr<ossimImageData> theBlankTile;
vector<double> theTargetMeanPerBand;
vector<double> theTargetSigmaPerBand;
vector<double> theInputMeanPerBand;
vector<double> theInputSigmaPerBand;
/**
* transLean
* @param vIn input value to be transformed
* @param vBias bias value to be removed
* @param vTarget value that will replace bias
* @param vMin minimum valid value of vIn (inclusive)
* @param vMax maximum valid value of vIn (inclusive)
* @return vOut
*/
double transLean(double vIn,
double vBias,
double vTarget,
double vMin,
double vMax);
/**
* transLeanStretch
* @param vin Input value to be transformed.
* @param vBias Bias value to be removed.
* @param vBiasStretch dispersion (+/-) about vBias
* @param vTarget value that will replace bias
* @param vTargetStretch dispersion (+/-) about vTarget
* @param vMin minimum valid value of vIn (inclusive)
* @param vMax maximum valid value of vIn (inclusive)
* @return vOut
*/
double transLeanStretch(double vIn,
double vBias,
double vBiasStretch,
double vTarget,
double vTargetStretch,
double vMin,
double vMax);
};
#endif /* #ifndef ossimHistoMatchRemapper_HEADER */
|