24 #include "base/common/ossimCommon.h" 27 #include "base/data_types/ossimFilename.h" 32 #include "base/misc/lookup_tables/ossimScalarTypeLut.h" 37 #include "imaging/factory/ossimImageHandlerRegistry.h" 41 #include "imaging/formats/ossimImageHandler.h" 50 int main(
int argc,
char* argv[])
98 cout <<
"filename = " << handler->
getFilename() << endl
99 <<
"width = " << bounds.
width() << endl
100 <<
"height = " << bounds.
height() << endl
101 <<
"overview count = " << (overviews-1) << endl
107 <<
"pixel size = " << ossimGetScalarSizeInBytes(scalarType) <<
" byte(s)" <<endl
108 <<
"Handler used = " << handler->
getClassName() << endl;
114 cout <<
"Unable to open image = " << argv[1] << endl;
119 cout <<
"usage: open_image <file name>" << endl;
void initialize(int &argc, char **argv)
virtual ossimImageHandler * open(const ossimFilename &fileName, bool trySuffixFirst=true, bool openOverview=true) const
open that takes a filename.
virtual ossimString getEntryString(ossim_int32 entry_number) const
ossim_uint32 height() const
virtual ossimString getClassName() const
virtual ossim_uint32 getNumberOfDecimationLevels() const
This returns the total number of decimation levels.
static ossimScalarTypeLut * instance()
Returns the static instance of an ossimScalarTypeLut object.
virtual const ossimFilename & getFilename() const
Returns the filename.
ossim_uint32 width() const
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
Used to convert from scalar type enumeration to strings and vice versa.
This class defines an abstract Handler which all image handlers(loaders) should derive from...
int main(int argc, char *argv[])
static ossimInit * instance()
static ossimImageHandlerRegistry * instance()
virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const
Returns zero-based bounding rectangle of the image.