From aebe5e38da4b0bb440002fd911148e95a7cbe75d Mon Sep 17 00:00:00 2001 From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org> Date: Wed, 20 Jan 2010 15:29:30 +0800 Subject: [PATCH] DOC: fix bug #0000144, additional explanations --- Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx b/Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx index ce451b6866..815ac1171b 100755 --- a/Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx +++ b/Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx @@ -106,6 +106,9 @@ int main( int argc, char * argv[] ) OutputVectorImageType> VectorRescalerType; typedef otb::MultiChannelExtractROI<unsigned char,unsigned char> ChannelExtractorType; + // The GenerateOutputInformation() information is required here so + // that the number of component per pixel is update and known to set + // up the maximum and minimum values for the rescaling filter multispectralReader->GenerateOutputInformation(); OutputVectorImageType::PixelType minimum,maximum; -- GitLab