/usr/include/ossim/util/ossimShorelineTool.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 | //**************************************************************************************************
//
// OSSIM Open Source Geospatial Data Processing Library
// See top level LICENSE.txt file for license information
//
//**************************************************************************************************
#ifndef ossimShorelineUtil_HEADER
#define ossimShorelineUtil_HEADER
#include <ossim/ossimConfig.h>
#include <ossim/base/ossimRefPtr.h>
#include <ossim/base/ossimProcessInterface.h>
#include <ossim/base/ossimFilename.h>
#include <ossim/base/ossimIpt.h>
#include <ossim/base/ossimIrect.h>
#include <ossim/base/ossimGrect.h>
#include <ossim/base/ossimLeastSquaresPlane.h>
#include <ossim/imaging/ossimImageSource.h>
#include <ossim/imaging/ossimImageGeometry.h>
#include <ossim/imaging/ossimImageData.h>
#include <ossim/imaging/ossimImageHandler.h>
#include <ossim/imaging/ossimMemoryImageSource.h>
#include <ossim/projection/ossimImageViewProjectionTransform.h>
#include <ossim/parallel/ossimJob.h>
#include <ossim/parallel/ossimJobMultiThreadQueue.h>
#include <ossim/point_cloud/ossimPointCloudHandler.h>
#include <ossim/util/ossimChipProcTool.h>
#include <vector>
#include <mutex>
/*!
* Class for finding helicopter landing zones (HLZ) on a DEM given the final destination and max
* range from destination.
*/
class OSSIMDLLEXPORT ossimShorelineTool : public ossimChipProcTool
{
public:
enum AlgorithmId { UNKNOWN, NDWI, AWEI, PAN_THRESHOLD };
enum ThresholdMode { NONE=0, MEAN=1, SIGMA=2, VARIANCE=3, VALUE=4 };
ossimShorelineTool();
~ossimShorelineTool();
virtual void setUsage(ossimArgumentParser& ap);
virtual bool initialize(ossimArgumentParser& ap);
virtual void initialize(const ossimKeywordlist& kwl);
virtual ossimRefPtr<ossimImageData> getChip(const ossimIrect& img_rect);
virtual bool execute();
virtual ossimString getClassName() const { return "ossimShorelineUtil"; }
/** Used by ossimUtilityFactory */
static const char* DESCRIPTION;
protected:
virtual void initProcessingChain();
void initLandsat8();
/** @brief Hidden from use copy constructor. */
ossimShorelineTool( const ossimShorelineTool& obj );
/** @brief Hidden from use assignment operator. */
const ossimShorelineTool& operator=( const ossimShorelineTool& rhs );
/** @brief Initializes arg parser and outputs usage. */
void usage(ossimArgumentParser& ap);
void addArguments(ossimArgumentParser& ap);
void doThreshold();
void autoComputeThreshold();
#if OSSIM_HAS_JSONCPP
bool addPropsToJSON();
#endif
ossim_uint8 m_waterValue;
ossim_uint8 m_marginalValue;
ossim_uint8 m_landValue;
ossimString m_sensor;
double m_threshold;
double m_tolerance;
AlgorithmId m_algorithm;
ThresholdMode m_thresholdMode;
double m_smoothing;
ossimFilename m_vectorFilename;
ossimFilename m_indexFilename;
ossimFilename m_threshFilename;
ossimFilename m_maskFilename;
std::map<ossimString, ossimString> m_geoJsonProps;
bool m_noVector;
};
#endif
|