Commit a4031d83 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: missing renaming of VectorDataToImage -> VectorDataToMap

parent 37123348
......@@ -20,7 +20,7 @@
#include "otbVectorData.h"
#include "otbImageFileReader.h"
#include "otbVectorDataToImageFilter.h"
#include "otbVectorDataToMapFilter.h"
#include "otbAlphaBlendingFunctor.h"
#include "itkBinaryFunctorImageFilter.h"
#include "otbImageFileWriter.h"
......@@ -98,7 +98,7 @@ int main(int argc, char * argv[])
//
// In order to be able to display the results, we will draw the
// detected segments on top of the input image. For this matter, we
// will use a \doxygen{otb}{VectorDataToImageFilter} which
// will use a \doxygen{otb}{VectorDataToMapFilter} which
// is templated over the input vector data type and the output image
// type, and a conbination of a \doxygen{itk}{binaryFunctorImageFilter}
// and the \doxygen{otb}{Functor}{AlphaBlendingFunctor}.
......@@ -107,7 +107,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginCodeSnippet
typedef otb::VectorData<PrecisionType> VectorDataType;
typedef otb::VectorDataToImageFilter<VectorDataType,
typedef otb::VectorDataToMapFilter<VectorDataType,
ImageType> VectorDataRendererType;
VectorDataRendererType::Pointer vectorDataRenderer = VectorDataRendererType::New();
......
......@@ -21,7 +21,7 @@
#include "otbImageFileReader.h"
#include "otbLineSegmentDetector.h"
#include "otbVectorDataToImageFilter.h"
#include "otbVectorDataToMapFilter.h"
#include "otbAlphaBlendingFunctor.h"
#include "itkBinaryFunctorImageFilter.h"
#include "otbImageFileWriter.h"
......@@ -155,7 +155,7 @@ int main(int argc, char * argv[])
// We will now draw the right angles on top of the input image. For
// this, we will draw the detected points on top of the input
// image. For this matter, we will use a
// \doxygen{otb}{VectorDataToImageFilter} which is templated over
// \doxygen{otb}{VectorDataToMapFilter} which is templated over
// the input vector data type and the output image type, and a
// conbination of a \doxygen{itk}{binaryFunctorImageFilter}
// and the \doxygen{otb}{Functor}{UnaryFunctorImageFilter}.
......@@ -163,7 +163,7 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::VectorDataToImageFilter<VectorDataType,
typedef otb::VectorDataToMapFilter<VectorDataType,
ImageType> VectorDataRendererType;
VectorDataRendererType::Pointer vectorDataRenderer = VectorDataRendererType::New();
......
......@@ -24,7 +24,7 @@
// Software Guide : BeginLatex
//
// The \doxygen{otb}{VectorDataToImageFilter} allows to perform
// The \doxygen{otb}{VectorDataToMapFilter} allows to perform
// rasterization of a given vector data as a binary mask. This example
// will demonstrate how to use this filter to perform rasterization of
// the SRTM water body masks available here:
......@@ -37,7 +37,7 @@
// Software Guide : BeginCodeSnippet
#include "otbVectorData.h"
#include "otbImage.h"
#include "otbVectorDataToImageFilter.h"
#include "otbVectorDataToMapFilter.h"
// Software Guide : EndCodeSnippet
#include "otbImageFileWriter.h"
......@@ -66,15 +66,15 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex
//
// Using these typedefs, we can define and instantiate the
// \doxygen{otb}{VectorDataToImageFilter}.
// \doxygen{otb}{VectorDataToMapFilter}.
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::VectorDataToImageFilter<VectorDataType,
ImageType> VectorDataToImageFilterType;
VectorDataToImageFilterType::Pointer vectorDataRendering
= VectorDataToImageFilterType::New();
typedef otb::VectorDataToMapFilter<VectorDataType,
ImageType> VectorDataToMapFilterType;
VectorDataToMapFilterType::Pointer vectorDataRendering
= VectorDataToMapFilterType::New();
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
......@@ -163,7 +163,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex
//
// Now, we can plug the the ROI filter to the
// \doxygen{otb}{VectorDataToImageFilter}.
// \doxygen{otb}{VectorDataToMapFilter}.
//
// Software Guide : EndLatex
......@@ -184,7 +184,7 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
vectorDataRendering->SetRenderingStyleType(VectorDataToImageFilterType::Binary);
vectorDataRendering->SetRenderingStyleType(VectorDataToMapFilterType::Binary);
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
......
......@@ -43,7 +43,7 @@
#include "otbVectorDataFileReader.h"
#include "otbVectorData.h"
#include "otbVectorDataProjectionFilter.h"
#include "otbVectorDataToImageFilter.h"
#include "otbVectorDataToMapFilter.h"
#include "otbAlphaBlendingFunction.h"
#include "otbImageLayerRenderingModel.h"
......@@ -168,12 +168,12 @@ int main( int argc, char * argv[] )
spacing[0] = reader->GetOutput()->GetSpacing()[0];
spacing[1] = reader->GetOutput()->GetSpacing()[1];
// set up the rendering of the vector data, the VectorDataToImageFilter uses the
// set up the rendering of the vector data, the VectorDataToMapFilter uses the
// mapnik library to obtain a nice rendering
typedef itk::RGBAPixel<unsigned char> AlphaPixelType;
typedef otb::Image<AlphaPixelType, 2> AlphaImageType;
typedef otb::VectorDataToImageFilter<VectorDataType, AlphaImageType> VectorDataToImageFilterType;
VectorDataToImageFilterType::Pointer vectorDataRendering = VectorDataToImageFilterType::New();
typedef otb::VectorDataToMapFilter<VectorDataType, AlphaImageType> VectorDataToMapFilterType;
VectorDataToMapFilterType::Pointer vectorDataRendering = VectorDataToMapFilterType::New();
vectorDataRendering->SetInput(projection->GetOutput());
vectorDataRendering->SetSize(size);
......@@ -192,7 +192,7 @@ int main( int argc, char * argv[] )
// rendering of the quicklook: the quicklook is at an entire different scale, so we don't want to
// render the same roads (only the main one).
VectorDataToImageFilterType::Pointer vectorDataRenderingQL = VectorDataToImageFilterType::New();
VectorDataToMapFilterType::Pointer vectorDataRenderingQL = VectorDataToMapFilterType::New();
vectorDataRenderingQL->SetInput(projection->GetOutput());
double qlRatio = generator->GetOptimalSubSamplingRate();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment