Skip to content
Snippets Groups Projects
Commit c970061b authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH: put the description of a layer in a single place

parent 7bf7282f
No related branches found
No related tags found
No related merge requests found
......@@ -272,6 +272,7 @@ ImageLayer<TImage, TOutputImage>
m_RenderingFunction->Initialize(m_Image->GetMetaDataDictionary()); //FIXME check, but the call must be done in the generator. To be moved to the layer?
// The ouptut stringstream
std::ostringstream oss;
oss << otbGetTextMacro("Index") << ": " << index << std::endl;
oss << otbGetTextMacro("Layer") << ": " << this->GetName();
oss << std::endl << otbGetTextMacro("Image size") << ": " << m_Image->GetLargestPossibleRegion().GetSize() << std::endl;
......
......@@ -51,7 +51,7 @@ PixelDescriptionModel<TOutputImage>
{
// The output stringstream
std::ostringstream oss;
oss << otbGetTextMacro("Index") << ": " << index << std::endl;
// Report pixel info for each visible layer
for (typename Superclass::LayerIteratorType it = this->GetLayers()->Begin();
it != this->GetLayers()->End(); ++it)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment