Commit c613e93d authored by Julien Michel's avatar Julien Michel

ENH: Replacing all calls to StreamingImageFileWriter to ImageFileWriter in Examples

parent db90bf02
......@@ -50,7 +50,7 @@
#include "otbImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "itkScalarToRGBColormapImageFilter.h"
#include "otbScalarToRainbowRGBPixelFunctor.h"
......@@ -75,7 +75,7 @@ int main(int argc, char * argv[])
typedef itk::RGBPixel<UCharPixelType> RGBPixelType;
typedef otb::Image<PixelType, 2> ImageType;
typedef otb::Image<RGBPixelType, 2> RGBImageType;
typedef otb::StreamingImageFileWriter<RGBImageType> WriterType;
typedef otb::ImageFileWriter<RGBImageType> WriterType;
WriterType::Pointer writer = WriterType::New();
writer->SetFileName(argv[1]);
......
......@@ -40,7 +40,7 @@
#include "otbImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbDEMToImageGenerator.h"
#include "otbHillShadingFilter.h"
......@@ -72,8 +72,8 @@ int main(int argc, char * argv[])
typedef otb::Image<PixelType, 2> ImageType;
typedef otb::Image<RGBPixelType, 2> RGBImageType;
typedef otb::Image<UCharPixelType, 2> ScalarImageType;
typedef otb::StreamingImageFileWriter<RGBImageType> WriterType;
typedef otb::StreamingImageFileWriter<ScalarImageType> ScalarWriterType;
typedef otb::ImageFileWriter<RGBImageType> WriterType;
typedef otb::ImageFileWriter<ScalarImageType> ScalarWriterType;
ScalarWriterType::Pointer writer = ScalarWriterType::New();
writer->SetFileName(argv[1]);
......
......@@ -41,7 +41,7 @@
#include "otbImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "itkUnaryFunctorImageFilter.h"
#include "itkScalarToRGBPixelFunctor.h"
......@@ -85,7 +85,7 @@ int main(int argc, char * argv[])
colormapper->SetInput(reader->GetOutput());
// Software Guide : EndCodeSnippet
typedef otb::StreamingImageFileWriter<RGBImageType> WriterType;
typedef otb::ImageFileWriter<RGBImageType> WriterType;
WriterType::Pointer writer = WriterType::New();
writer->SetFileName(outputRGBFilename);
writer->SetInput(colormapper->GetOutput());
......@@ -99,7 +99,7 @@ int main(int argc, char * argv[])
RescalerType::Pointer rescaler = RescalerType::New();
rescaler->SetInput(reader->GetOutput());
typedef otb::StreamingImageFileWriter<OutputImageType> UCharWriterType;
typedef otb::ImageFileWriter<OutputImageType> UCharWriterType;
UCharWriterType::Pointer writer2 = UCharWriterType::New();
writer2->SetFileName(outputScaledFilename);
writer2->SetInput(rescaler->GetOutput());
......
......@@ -40,7 +40,7 @@
#include "itkMacro.h"
#include "otbVectorImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbPrintableImageFilter.h"
......@@ -96,8 +96,8 @@ int main(int argc, char * argv[])
typedef otb::Image<ColorPixelType, Dimension> RGBImageType;
typedef otb::ImageFileReader<ImageType> ReaderType;
typedef otb::StreamingImageFileWriter<ImageType> WriterType;
typedef otb::StreamingImageFileWriter<LabelImageType> LabelWriterType;
typedef otb::ImageFileWriter<ImageType> WriterType;
typedef otb::ImageFileWriter<LabelImageType> LabelWriterType;
typedef otb::MeanShiftSegmentationFilter<ImageType, LabelImageType, ImageType> FilterType;
// Software Guide : EndCodeSnippet
......
......@@ -59,7 +59,7 @@
#include "otbVectorImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbPrintableImageFilter.h"
int main(int argc, char * argv[])
......@@ -115,7 +115,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginCodeSnippet
typedef PrintableFilterType::OutputImageType OutputImageType;
typedef otb::StreamingImageFileWriter<OutputImageType> WriterType;
typedef otb::ImageFileWriter<OutputImageType> WriterType;
// Software Guide : EndCodeSnippet
WriterType::Pointer writer = WriterType::New();
......
......@@ -34,7 +34,7 @@
#include "otbImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "itkRescaleIntensityImageFilter.h"
#include "itkCastImageFilter.h"
......@@ -71,7 +71,7 @@ int main(int argc, char * argv[])
rescaler->SetInput(reader->GetOutput());
// Software Guide : EndCodeSnippet
typedef otb::StreamingImageFileWriter<OutputImageType> WriterType;
typedef otb::ImageFileWriter<OutputImageType> WriterType;
WriterType::Pointer writer = WriterType::New();
writer->SetFileName(argv[2]);
writer->SetInput(rescaler->GetOutput());
......
......@@ -17,7 +17,7 @@
=========================================================================*/
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbImage.h"
#include "itkShiftScaleImageFilter.h"
#include "otbCommandProgressUpdate.h"
......@@ -87,14 +87,14 @@ int main(int argc, char* argv[])
// can be vey large, we will force the pipeline to use
// streaming. For this purpose, the file writer will be
// streamed. This is achieved by using the
// \doxygen{otb}{StreamingImageFileWriter} class.
// \doxygen{otb}{ImageFileWriter} class.
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::ImageFileReader<InputImageType1> ReaderType1;
typedef otb::ImageFileReader<InputImageType2> ReaderType2;
typedef otb::StreamingImageFileWriter<OutputImageType> WriterType;
typedef otb::ImageFileWriter<OutputImageType> WriterType;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
......
......@@ -17,7 +17,7 @@
=========================================================================*/
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbImage.h"
#include "itkShiftScaleImageFilter.h"
#include "otbJoinHistogramMIImageFilter.h"
......@@ -47,7 +47,7 @@ int main(int argc, char* argv[])
typedef otb::ImageFileReader<InputImageType1> ReaderType1;
typedef otb::ImageFileReader<InputImageType2> ReaderType2;
typedef otb::StreamingImageFileWriter<OutputImageType> WriterType;
typedef otb::ImageFileWriter<OutputImageType> WriterType;
typedef itk::ShiftScaleImageFilter<ChangeImageType,
OutputImageType> RescalerType;
......
......@@ -17,7 +17,7 @@
=========================================================================*/
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbImage.h"
#include "itkShiftScaleImageFilter.h"
#include "otbLHMIChangeDetector.h"
......@@ -47,7 +47,7 @@ int main(int argc, char* argv[])
typedef otb::ImageFileReader<InputImageType1> ReaderType1;
typedef otb::ImageFileReader<InputImageType2> ReaderType2;
typedef otb::StreamingImageFileWriter<OutputImageType> WriterType;
typedef otb::ImageFileWriter<OutputImageType> WriterType;
typedef itk::ShiftScaleImageFilter<ChangeImageType,
OutputImageType> RescalerType;
......
......@@ -18,7 +18,7 @@
#include "otbVectorImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbPrintableImageFilter.h"
......@@ -94,13 +94,13 @@ int main(int argc, char* argv[])
// can be vey large, we will force the pipeline to use
// streaming. For this purpose, the file writer will be
// streamed. This is achieved by using the
// \doxygen{otb}{StreamingImageFileWriter} class.
// \doxygen{otb}{ImageFileWriter} class.
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::ImageFileReader<InputImageType> ReaderType;
typedef otb::StreamingImageFileWriter<OutputImageType> WriterType;
typedef otb::ImageFileWriter<OutputImageType> WriterType;
// Software Guide : EndCodeSnippet
......@@ -108,7 +108,7 @@ int main(int argc, char* argv[])
typedef otb::PrintableImageFilter<InputImageType,InputImageType> InputPrintFilterType;
typedef otb::PrintableImageFilter<OutputImageType,OutputImageType> OutputPrintFilterType;
typedef InputPrintFilterType::OutputImageType VisuImageType;
typedef otb::StreamingImageFileWriter<VisuImageType> VisuWriterType;
typedef otb::ImageFileWriter<VisuImageType> VisuWriterType;
// The \doxygen{otb}{MultivariateAlterationDetectorImageFilter} is templated over
// the type of the input images and the type of the generated change
......
......@@ -55,7 +55,7 @@
// Software Guide : EndCodeSnippet
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbImage.h"
#include "itkShiftScaleImageFilter.h"
#include "otbCommandProgressUpdate.h"
......@@ -95,14 +95,14 @@ int main(int argc, char* argv[])
// can be vey large, we will force the pipeline to use
// streaming. For this purpose, the file writer will be
// streamed. This is achieved by using the
// \doxygen{otb}{StreamingImageFileWriter} class.
// \doxygen{otb}{ImageFileWriter} class.
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::ImageFileReader<InputImageType1> ReaderType1;
typedef otb::ImageFileReader<InputImageType2> ReaderType2;
typedef otb::StreamingImageFileWriter<OutputImageType> WriterType;
typedef otb::ImageFileWriter<OutputImageType> WriterType;
// Software Guide : EndCodeSnippet
......
......@@ -18,7 +18,7 @@
#include "otbVectorImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbPrintableImageFilter.h"
......@@ -94,13 +94,13 @@ int main(int argc, char* argv[])
// can be vey large, we will force the pipeline to use
// streaming. For this purpose, the file writer will be
// streamed. This is achieved by using the
// \doxygen{otb}{StreamingImageFileWriter} class.
// \doxygen{otb}{ImageFileWriter} class.
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::ImageFileReader<InputImageType> ReaderType;
typedef otb::StreamingImageFileWriter<OutputImageType> WriterType;
typedef otb::ImageFileWriter<OutputImageType> WriterType;
// Software Guide : EndCodeSnippet
......@@ -108,7 +108,7 @@ int main(int argc, char* argv[])
typedef otb::PrintableImageFilter<InputImageType,InputImageType> InputPrintFilterType;
typedef otb::PrintableImageFilter<OutputImageType,OutputImageType> OutputPrintFilterType;
typedef InputPrintFilterType::OutputImageType VisuImageType;
typedef otb::StreamingImageFileWriter<VisuImageType> VisuWriterType;
typedef otb::ImageFileWriter<VisuImageType> VisuWriterType;
// The \doxygen{otb}{MultivariateAlterationDetectorImageFilter} is templated over
// the type of the input images and the type of the generated change
......
......@@ -32,7 +32,7 @@
#include "otbVectorImage.h"
#include "otbImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
int main(int argc, char * argv[])
{
......@@ -86,7 +86,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginCodeSnippet
typedef otb::ImageFileReader<ImageType> ReaderType;
typedef otb::StreamingImageFileWriter<LabeledImageType> WriterType;
typedef otb::ImageFileWriter<LabeledImageType> WriterType;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
......
......@@ -36,7 +36,7 @@
#include "otbImage.h"
#include "otbSOMMap.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
int main(int argc, char * argv[])
{
......@@ -94,7 +94,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginCodeSnippet
typedef otb::ImageFileReader<ImageType> ReaderType;
typedef otb::ImageFileReader<SOMMapType> SOMReaderType;
typedef otb::StreamingImageFileWriter<LabeledImageType> WriterType;
typedef otb::ImageFileWriter<LabeledImageType> WriterType;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
......
......@@ -37,7 +37,7 @@
#include "otbVectorImage.h"
#include "otbImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
int main(int argc, char * argv[])
{
......@@ -91,7 +91,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginCodeSnippet
typedef otb::ImageFileReader<ImageType> ReaderType;
typedef otb::StreamingImageFileWriter<LabeledImageType> WriterType;
typedef otb::ImageFileWriter<LabeledImageType> WriterType;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
......
......@@ -17,7 +17,7 @@
=========================================================================*/
#include "otbVectorImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbPrintableImageFilter.h"
// Software Guide : BeginCommandLineArgs
......@@ -71,13 +71,13 @@ int main(int argc, char* argv[])
// can be very large, we will force the pipeline to use
// streaming. For this purpose, the file writer will be
// streamed. This is achieved by using the
// \doxygen{otb}{StreamingImageFileWriter} class.
// \doxygen{otb}{ImageFileWriter} class.
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::ImageFileReader<InputImageType> ReaderType;
typedef otb::StreamingImageFileWriter<OutputImageType> WriterType;
typedef otb::ImageFileWriter<OutputImageType> WriterType;
// Software Guide : EndCodeSnippet
// SoftwareGuide : BeginLatex
......@@ -141,7 +141,7 @@ int main(int argc, char* argv[])
typedef otb::PrintableImageFilter<InputImageType,InputImageType> InputPrintFilterType;
typedef otb::PrintableImageFilter<OutputImageType,OutputImageType> OutputPrintFilterType;
typedef InputPrintFilterType::OutputImageType VisuImageType;
typedef otb::StreamingImageFileWriter<VisuImageType> VisuWriterType;
typedef otb::ImageFileWriter<VisuImageType> VisuWriterType;
InputPrintFilterType::Pointer inputPrintFilter = InputPrintFilterType::New();
OutputPrintFilterType::Pointer outputPrintFilter = OutputPrintFilterType::New();
......
......@@ -39,7 +39,7 @@
// Software Guide : EndLatex
#include "otbImage.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbImageFileReader.h"
#include "itkRecursiveGaussianImageFilter.h"
#include "itkWarpImageFilter.h"
......@@ -221,7 +221,7 @@ int main(int argc, char** argv)
// The execution of the \doxygen{otb}{FineRegistrationImageFilter} will be triggered by
// the \code{Update()} call on the writer at the end of the
// pipeline. Make sure to use a
// \doxygen{otb}{StreamingImageFileWriter} if you want to benefit
// \doxygen{otb}{ImageFileWriter} if you want to benefit
// from the streaming features.
//
// Software Guide : EndLatex
......@@ -243,7 +243,7 @@ int main(int argc, char** argv)
fieldRescaler->SetOutputMaximum(255);
fieldRescaler->SetOutputMinimum(0);
typedef otb::StreamingImageFileWriter<OutputImageType> DFWriterType;
typedef otb::ImageFileWriter<OutputImageType> DFWriterType;
DFWriterType::Pointer dfWriter = DFWriterType::New();
dfWriter->SetFileName(argv[3]);
......@@ -272,7 +272,7 @@ int main(int argc, char** argv)
metricRescaler->SetOutputMinimum(0);
metricRescaler->SetOutputMaximum(255);
typedef otb::StreamingImageFileWriter<OutputImageType> WriterType;
typedef otb::ImageFileWriter<OutputImageType> WriterType;
WriterType::Pointer writer1 = WriterType::New();
writer1->SetInput(metricRescaler->GetOutput());
......
......@@ -33,7 +33,7 @@
// Software Guide : EndLatex
#include "otbImage.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbImageFileReader.h"
#include "otbCommandLineArgumentParser.h"
......@@ -177,7 +177,7 @@ int main(int argc, char** argv)
// The execution of the NCCRegistrationFilter will be triggered by
// the \code{Update()} call on the writer at the end of the
// pipeline. Make sure to use a
// \doxygen{otb}{StreamingImageFileWriter} if you want to benefit
// \doxygen{otb}{ImageFileWriter} if you want to benefit
// from the streaming features.
//
// Software Guide : EndLatex
......@@ -199,7 +199,7 @@ int main(int argc, char** argv)
fieldRescaler->SetOutputMaximum(255);
fieldRescaler->SetOutputMinimum(0);
typedef otb::StreamingImageFileWriter<OutputImageType> DFWriterType;
typedef otb::ImageFileWriter<OutputImageType> DFWriterType;
DFWriterType::Pointer dfWriter = DFWriterType::New();
dfWriter->SetFileName(argv[3]);
......@@ -224,7 +224,7 @@ int main(int argc, char** argv)
CastFilterType::Pointer caster = CastFilterType::New();
caster->SetInput(warper->GetOutput());
typedef otb::StreamingImageFileWriter<OutputImageType> WriterType;
typedef otb::ImageFileWriter<OutputImageType> WriterType;
WriterType::Pointer writer = WriterType::New();
writer->SetFileName(argv[5]);
......
......@@ -53,7 +53,7 @@
#include "otbImage.h"
#include "otbVectorImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbBCOInterpolateImageFunction.h"
#include "itkVectorCastImageFilter.h"
#include "otbImageList.h"
......@@ -85,7 +85,7 @@ int main(int argc, char* argv[])
typedef otb::ImageFileReader
<FloatImageType> ImageReaderType;
typedef otb::StreamingImageFileWriter
typedef otb::ImageFileWriter
<FloatImageType> WriterType;
typedef unsigned char OutputPixelType;
......@@ -94,7 +94,7 @@ int main(int argc, char* argv[])
typedef itk::RescaleIntensityImageFilter<FloatImageType,
OutputImageType> RescalerType;
typedef otb::StreamingImageFileWriter
typedef otb::ImageFileWriter
<OutputImageType> OutputWriterType;
// Software Guide : BeginLatex
// This example demonstrates the use of the following filters :
......
......@@ -72,7 +72,7 @@
#include "otbImage.h"
#include "otbVectorImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbSimpleRcsPanSharpeningFusionImageFilter.h"
// Software Guide : EndCodeSnippet
......@@ -148,7 +148,7 @@ int main(int argc, char* argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::StreamingImageFileWriter<VectorIntImageType> WriterType;
typedef otb::ImageFileWriter<VectorIntImageType> WriterType;
WriterType::Pointer writer = WriterType::New();
writer->SetFileName(argv[3]);
writer->SetInput(fusion->GetOutput());
......@@ -161,7 +161,7 @@ int main(int argc, char* argv[])
typedef otb::VectorImage<unsigned char,
2>
VectorCharImageType;
typedef otb::StreamingImageFileWriter<VectorCharImageType> PNGWriterType;
typedef otb::ImageFileWriter<VectorCharImageType> PNGWriterType;
PNGWriterType::Pointer pngwriter = PNGWriterType::New();
printable->SetInput(fusion->GetOutput());
......
......@@ -41,7 +41,7 @@
#include "otbObjectList.h"
#include "otbImageList.h"
#include "otbImageListToVectorImageFilter.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
// Software Guide : EndCodeSnippet
int main(int argc, char** argv)
......@@ -152,7 +152,7 @@ int main(int argc, char** argv)
// Software Guide : BeginLatex
//
// We plug the image list as input of the filter and use a
// \doxygen{otb}{StreamingImageFileWriter} to write the result image
// \doxygen{otb}{ImageFileWriter} to write the result image
// to a file, so that the streaming capabilities of all the readers
// and the filter are used.
//
......@@ -161,7 +161,7 @@ int main(int argc, char** argv)
// Software Guide : BeginCodeSnippet
iL2VI->SetInput(imageList);
typedef otb::StreamingImageFileWriter<VectorImageType> ImageWriterType;
typedef otb::ImageFileWriter<VectorImageType> ImageWriterType;
ImageWriterType::Pointer imageWriter = ImageWriterType::New();
......
......@@ -38,7 +38,7 @@
// this is transparent for the programmer, and if a streaming loop is
// used at the end of the pipeline, the read operation will be
// streamed. For the file writing, the
// \doxygen{otb}{StreamingImageFileWriter} has to be used.
// \doxygen{otb}{ImageFileWriter} has to be used.
//
// The first step for performing streamed reading and writing is to include the
// following headers.
......@@ -46,14 +46,14 @@
// \index{otb::ImageFileReader|textbf}
// \index{otb::ImageFileReader!header}
//
// \index{otb::StreamingImageFileWriter|textbf}
// \index{otb::StreamingImageFileWriter!header}
// \index{otb::ImageFileWriter|textbf}
// \index{otb::ImageFileWriter!header}
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
// Software Guide : EndCodeSnippet
#include "itkRescaleIntensityImageFilter.h"
......@@ -88,14 +88,14 @@ int main(int argc, char * argv[])
// classes are parameterized over the image type. We will rescale
// the intensities of the as an example of intermediate processing step.
//
// \index{otb::StreamingImageFileWriter!Instantiation}
// \index{otb::ImageFileWriter!Instantiation}
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::ImageFileReader<ImageType> ReaderType;
typedef itk::RescaleIntensityImageFilter<ImageType, ImageType> RescalerType;
typedef otb::StreamingImageFileWriter<ImageType> WriterType;
typedef otb::ImageFileWriter<ImageType> WriterType;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
......@@ -128,9 +128,9 @@ int main(int argc, char * argv[])
// for the rescaler.
//
// \index{otb::ImageFileReader!SetFileName()}
// \index{otb::StreamingImageFileWriter!SetFileName()}
// \index{otb::ImageFileWriter!SetFileName()}
// \index{SetFileName()!otb::ImageFileReader}
// \index{SetFileName()!otb::StreamingImageFileWriter}
// \index{SetFileName()!otb::ImageFileWriter}
//
// Software Guide : EndLatex
......
......@@ -42,7 +42,7 @@
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbImage.h"
#include "otbMarkovRandomFieldFilter.h"
#include "itkRescaleIntensityImageFilter.h"
......@@ -96,7 +96,7 @@ int main(int argc, char* argv[] )
// Software Guide : BeginCodeSnippet
typedef otb::ImageFileReader< InputImageType > ReaderType;
typedef otb::StreamingImageFileWriter< LabelledImageType > WriterType;
typedef otb::ImageFileWriter< LabelledImageType > WriterType;
ReaderType::Pointer reader = ReaderType::New();
WriterType::Pointer writer = WriterType::New();
......@@ -286,7 +286,7 @@ int main(int argc, char* argv[] )
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::StreamingImageFileWriter<RGBImageType> WriterRescaledType;
typedef otb::ImageFileWriter<RGBImageType> WriterRescaledType;
WriterRescaledType::Pointer writerRescaled = WriterRescaledType::New();
......
......@@ -20,7 +20,7 @@
#include "otbImage.h"
#include "otbVectorImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
// Software Guide : BeginLatex
//
......@@ -57,7 +57,7 @@ int main(int argc, char* argv[])
//
// We will start by defining the types for the images, the image file
// reader and the image file writer. The writer will be a
// \doxygen{otb}{StreamingImageFileWriter} which will allow us to set
// \doxygen{otb}{ImageFileWriter} which will allow us to set
// the number of stream divisions we want to apply when writing the
// output image, which can be very large.
//
......@@ -67,7 +67,7 @@ int main(int argc, char* argv[])
typedef otb::Image<int, 2> ImageType;
typedef otb::VectorImage<int, 2> VectorImageType;
typedef otb::ImageFileReader<VectorImageType> ReaderType;
typedef otb::StreamingImageFileWriter<VectorImageType> WriterType;
typedef otb::ImageFileWriter<VectorImageType> WriterType;
ReaderType::Pointer reader = ReaderType::New();
WriterType::Pointer writer = WriterType::New();
......
......@@ -36,7 +36,7 @@
// Software Guide : BeginCodeSnippet
#include "otbImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "itkGradientMagnitudeImageFilter.h"
int main(int argc, char * argv[])
......@@ -63,7 +63,7 @@ int main(int argc, char * argv[])
typedef otb::ImageFileReader<ImageType> ReaderType;