Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
bcce88e9
Commit
bcce88e9
authored
Dec 14, 2009
by
Emmanuel Christophe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DOC: typo
parent
55d4386b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
18 deletions
+16
-18
Code/IO/otbImageFileReader.h
Code/IO/otbImageFileReader.h
+4
-5
Code/IO/otbImageFileReader.txx
Code/IO/otbImageFileReader.txx
+8
-9
Examples/IO/TileMapImageIOExample.cxx
Examples/IO/TileMapImageIOExample.cxx
+4
-4
No files found.
Code/IO/otbImageFileReader.h
View file @
bcce88e9
...
...
@@ -24,7 +24,7 @@ namespace otb
{
/** \class ImageFileReader
* \brief Res
s
ource to read an image from a file.
* \brief Resource to read an image from a file.
*
* \sa ImageSeriesReader
* \sa ImageIOBase
...
...
@@ -37,9 +37,9 @@ class ITK_EXPORT ImageFileReader : public itk::ImageFileReader<TOutputImage>
{
public:
/** Standard class typedefs. */
typedef
ImageFileReader
Self
;
typedef
ImageFileReader
Self
;
typedef
itk
::
ImageFileReader
<
TOutputImage
>
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
/** Method for creation through the object factory. */
itkNewMacro
(
Self
);
...
...
@@ -59,8 +59,7 @@ public:
/** The pixel type of the output image. */
//typedef typename TOutputImage::InternalPixelType OutputImagePixelType;
/** Prepare l'allocation de l'image output lors du premier appel de traitement
* pipeline. */
/** Prepare image allocation at the first call of the pipeline processing */
virtual
void
GenerateOutputInformation
(
void
);
/** Does the real work. */
...
...
Code/IO/otbImageFileReader.txx
View file @
bcce88e9
...
...
@@ -170,7 +170,8 @@ ImageFileReader<TOutputImage>
ImageRegionType region = output->GetBufferedRegion();
// Adapte the image size with the region
std::streamoff nbBytes = (this->m_ImageIO->GetImageSizeInBytes() / this->m_ImageIO->GetImageSizeInPixels()) * static_cast<std::streamoff>(region.GetNumberOfPixels());
std::streamoff nbBytes = (this->m_ImageIO->GetImageSizeInBytes() / this->m_ImageIO->GetImageSizeInPixels())
* static_cast<std::streamoff>(region.GetNumberOfPixels());
char * loadBuffer = new char[nbBytes];
...
...
@@ -339,12 +340,10 @@ ImageFileReader<TOutputImage>
ossimKeywordlist geom_kwl, tmp_kwl, tmp_kwl2;// = new ossimKeywordlist();
// Add the radar factory
ossimImageHandlerRegistry::instance()->addFactory(ossimImageHandlerSarFactory::instance());
ossimImageHandler* handler = ossimImageHandlerRegistry::instance()
->open(ossimFilename(lFileNameOssimKeywordlist.c_str()));
...
...
@@ -371,14 +370,14 @@ ImageFileReader<TOutputImage>
// Add the plugins factory
ossimProjectionFactoryRegistry::instance()->registerFactory(ossimplugins::ossimPluginProjectionFactory::instance());
ossimProjection * projection = ossimProjectionFactoryRegistry::instance()
->createProjection(ossimFilename(lFileNameOssimKeywordlist.c_str()),
0);
->createProjection(ossimFilename(lFileNameOssimKeywordlist.c_str()),
0);
if (!projection)
{
otbMsgDevMacro( <<"OSSIM Instan
c
iate projection FAILED ! ");
otbMsgDevMacro( <<"OSSIM Instan
t
iate projection FAILED ! ");
}
else
{
otbMsgDevMacro( <<"OSSIM Instan
c
iate projection SUCCESS ! ");
otbMsgDevMacro( <<"OSSIM Instan
t
iate projection SUCCESS ! ");
hasMetaData = projection->saveState(geom_kwl);
// Free memory
delete projection;
...
...
@@ -399,7 +398,7 @@ ImageFileReader<TOutputImage>
ImageKeywordlist otb_kwl;
otb_kwl.SetKeywordlist( geom_kwl );
// Update itk MetaData Diction
n
ary
// Update itk MetaData Dictionary
itk::MetaDataDictionary& dict = this->m_ImageIO->GetMetaDataDictionary();
...
...
@@ -453,7 +452,7 @@ ImageFileReader<TOutputImage>
}
// Test if the file can be open for reading access.
//Only if m_FileName speci
y a fil
name (not a dirname)
//Only if m_FileName speci
fy a file
name (not a dirname)
if ( System::IsAFileName( this->m_FileName ) == true )
{
std::ifstream readTester;
...
...
@@ -481,7 +480,7 @@ ImageFileReader<TOutputImage>
{
std::vector<std::string> listFileSearch;
listFileSearch.push_back("DAT_01.001");
listFileSearch.push_back("dat_01.001");// RADARSAT o
u
SAR_ERS2
listFileSearch.push_back("dat_01.001");// RADARSAT o
r
SAR_ERS2
listFileSearch.push_back("IMAGERY.TIF");
listFileSearch.push_back("imagery.tif");//For format SPOT5TIF
// Not recognised as a supported file format by GDAL.
...
...
Examples/IO/TileMapImageIOExample.cxx
View file @
bcce88e9
...
...
@@ -96,10 +96,10 @@ int main( int argc, char* argv[] )
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
itk
::
RGBPixel
<
unsigned
char
>
RGBPixelType
;
typedef
otb
::
Image
<
RGBPixelType
,
2
>
ImageType
;
typedef
itk
::
RGBPixel
<
unsigned
char
>
RGBPixelType
;
typedef
otb
::
Image
<
RGBPixelType
,
2
>
ImageType
;
typedef
otb
::
ImageFileReader
<
ImageType
>
ReaderType
;
typedef
otb
::
TileMapImageIO
ImageIOType
;
typedef
otb
::
TileMapImageIO
ImageIOType
;
ImageIOType
::
Pointer
tileIO
=
ImageIOType
::
New
();
ReaderType
::
Pointer
readerTile
=
ReaderType
::
New
();
...
...
@@ -117,7 +117,7 @@ int main( int argc, char* argv[] )
// that's why we don't want to do an update before extracting a specific
// area.
//
// The coordinates are refered with an origin at the North Pole and the
// The coordinates are refer
r
ed with an origin at the North Pole and the
// change date meridian in Mercator projection. So we need to translate the latitude
// and the longitude in this funny coordinate system:
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment