From 0ff8b56bf8de2f6d99fbbe457344c0f8ba49824e Mon Sep 17 00:00:00 2001 From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org> Date: Tue, 4 Aug 2009 17:32:01 +0800 Subject: [PATCH] ENH: change the information stored --- Code/IO/otbPointSetFileReader.h | 3 ++- Code/IO/otbPointSetFileReader.txx | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Code/IO/otbPointSetFileReader.h b/Code/IO/otbPointSetFileReader.h index b3cb6344fd..67a899b1a6 100644 --- a/Code/IO/otbPointSetFileReader.h +++ b/Code/IO/otbPointSetFileReader.h @@ -24,7 +24,8 @@ namespace otb { -/** \class PointSetFileReader +/** + * \class PointSetFileReader * \brief Read a point set from a lidar file. * * \sa PointSetSource diff --git a/Code/IO/otbPointSetFileReader.txx b/Code/IO/otbPointSetFileReader.txx index 3497f0dbcf..0c04e45193 100644 --- a/Code/IO/otbPointSetFileReader.txx +++ b/Code/IO/otbPointSetFileReader.txx @@ -126,8 +126,6 @@ template <class TOutputPointSet> void PointSetFileReader<TOutputPointSet> ::GenerateData() { - - typename TOutputPointSet::Pointer output = this->GetOutput(); std::ifstream ifs; @@ -162,7 +160,7 @@ void PointSetFileReader<TOutputPointSet> } } - //If the output pointset is of dimension 3, store the intensity as information + //If the output pointset is of dimension 3, store the altitude as information else if (PointType::PointDimension == 3) { while (reader.ReadNextPoint()) @@ -179,7 +177,7 @@ void PointSetFileReader<TOutputPointSet> output->SetPoint( i, point ); PixelType V; - V = static_cast<PixelType>( p.GetIntensity() ); + V = static_cast<PixelType>( p.GetZ() ); output->SetPointData( i, V ); } -- GitLab