/usr/include/ossim/imaging/ossimClosestToCenterCombiner.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 | //*******************************************************************
// Copyright (C) 2005 Garrett Potts.
//
// License: MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Garrett Potts
//
//*************************************************************************
// $Id: ossimClosestToCenterCombiner.h 22162 2013-02-26 01:37:48Z gpotts $
#ifndef ossimClosestToCenterCombiner_HEADER
#define ossimClosestToCenterCombiner_HEADER
#include <vector>
#include <ossim/imaging/ossimImageMosaic.h>
/**
* This implements a closest to center combiner.
*
* It will first grab all images overlapping a given rectangle query. The first non-null
* closest pixel to the center of the image is used. This basically uses only pixels along
* the "sweet" spot of the image. This combiner is typically used when there is overlapping
* sensor data.
*
*/
class OSSIM_DLL ossimClosestToCenterCombiner : public ossimImageMosaic
{
public:
ossimClosestToCenterCombiner();
/**
* Executes the ossimClosestToCenterCombiner algorithm. sets the pixels to the closest
* Valid value. This simulates a sweet spot cutter.
*
* @param rect The region of interest.
* @param resLevel. For this combiner this is assumed to always be 0
*/
virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& rect,
ossim_uint32 resLevel=0);
protected:
class ossimClosestToCenterCombinerInfo
{
public:
ossimClosestToCenterCombinerInfo(ossimRefPtr<ossimImageData> tile,
ossim_int32 idx)
:theTile(tile),
theIndex(idx)
{
}
ossimRefPtr<ossimImageData> theTile;
ossim_int32 theIndex;
};
ossim_int32 findIdx(const std::vector<ossimClosestToCenterCombinerInfo >& normTileList,
const ossimIpt& pt, ossim_uint32 offset)const;
TYPE_DATA
};
#endif
|