diff --git a/Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx b/Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx index ce451b686622df1b701343f8689f3949022011f6..815ac1171baa65fa51c35c4513ec763b7bf5f522 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;