/usr/include/ossim/imaging/ossimSICDToDetectedImage.h is in libossim-dev 1.8.16-3+b1.
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 | //*******************************************************************
// Copyright (C) 2010 Radiant Blue Tecnologies Inc.
//
// License: See LICENSE.txt file in the top level directory.
//
// Author: William Watkins
//
//*************************************************************************
#ifndef ossimSICDToDetectedImage_HEADER
#define ossimSICDToDetectedImage_HEADER
#include <ossim/imaging/ossimImageSourceFilter.h>
class OSSIM_DLL ossimSICDToDetectedImage : public ossimImageSourceFilter
{
public:
/**
* Currently works with SICD data but will generally work for conforming Complex formats */
ossimSICDToDetectedImage();
/**
* Applies the sqrt(I^2 + Q^2) to generate the Detected SAR image.
For 8 bit data the input is assumed to be Magnitude and Phase (Not complex format) and
so it simply returns the magnitude which is the Detected SAR image.
*/
virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tileRect,
ossim_uint32 resLevel=0);
/**
* Calls base ossimImageSourceFilter::initialize() to reset connection if
* needed then nulls out tiles.
*
* @note This does not initialize tiles intentionally to avoid repeated
* deletes and news. Tiles will be initialized by allocate() method on
* the first getTile call after an initialize.
*/
virtual void initialize();
// virtual ossim_uint32 getNumberOfOutputBands() const
// {
// return 1;
// }
/*---------------------- PROPERTY INTERFACE ---------------------------*/
virtual void setProperty(ossimRefPtr<ossimProperty> property);
virtual ossimRefPtr<ossimProperty> getProperty(const ossimString& name)const;
virtual void getPropertyNames(std::vector<ossimString>& propertyNames)const;
/*--------------------- PROPERTY INTERFACE END ------------------------*/
protected:
virtual ~ossimSICDToDetectedImage();
/**
* Called to initialize tiles by first get tile when theTile or theNormTile
* are not initialized.
*/
void allocate();
/**
* Applies the brightness contrast to tile. This method simply applies
* brightness contrast to all bands. Called if input does not have
* three bands.
*/
template <class T> void processComplexTile(T dummy, ossimImageData* tile);
template<class T> void processAmplitudeAngleTile(T dummy, ossimImageData* tile);
ossimRefPtr<ossimImageData> theTile;
TYPE_DATA
};
#endif /* End of "#ifndef ossimSICDToDetectedImage_HEADER" */
|