From d4cddba49ce94a80f81882bf44e86020a9ce5ea7 Mon Sep 17 00:00:00 2001 From: Victor Poughon <victor.poughon@cnes.fr> Date: Wed, 24 Apr 2019 16:37:37 +0200 Subject: [PATCH] DOC: review LeeImageFilter --- Examples/BasicFilters/LeeImageFilter.cxx | 14 +++++++------- Examples/BasicFilters/LeeImageFilter.rst | 13 ++++++++++--- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/Examples/BasicFilters/LeeImageFilter.cxx b/Examples/BasicFilters/LeeImageFilter.cxx index fee4c62c87..d8c7aa947d 100644 --- a/Examples/BasicFilters/LeeImageFilter.cxx +++ b/Examples/BasicFilters/LeeImageFilter.cxx @@ -47,16 +47,16 @@ int main(int argc, char* argv[]) // The filter can be instantiated using the image types defined above. typedef otb::LeeImageFilter<InputImageType, OutputImageType> FilterType; - // An ImageFileReader class is also instantiated in order to read - // image data from a file. + // An ImageFileReader class is also instantiated in order to read + // image data from a file. typedef otb::ImageFileReader<InputImageType> ReaderType; - // An \doxygen{otb}{ImageFileWriter} is instantiated in order to write the + // An ImageFileWriter is instantiated in order to write the // output image to a file. typedef otb::ImageFileWriter<OutputImageType> WriterType; - // Both the filter and the reader are created by invoking their \code{New()} - // methods and assigning the result to SmartPointers. + // Both the filter and the reader are created by invoking their New() + // methods and assigning the result to SmartPointers. ReaderType::Pointer reader = ReaderType::New(); FilterType::Pointer filter = FilterType::New(); @@ -64,8 +64,8 @@ int main(int argc, char* argv[]) writer->SetInput(filter->GetOutput()); reader->SetFileName(argv[1]); - // The image obtained with the reader is passed as input to the - // LeeImageFilter. + // The image obtained with the reader is passed as input to the + // LeeImageFilter. filter->SetInput(reader->GetOutput()); // The method SetRadius() defines the size of the window to diff --git a/Examples/BasicFilters/LeeImageFilter.rst b/Examples/BasicFilters/LeeImageFilter.rst index bb34942a9e..612bd8eb9e 100644 --- a/Examples/BasicFilters/LeeImageFilter.rst +++ b/Examples/BasicFilters/LeeImageFilter.rst @@ -1,12 +1,19 @@ -This example illustrates the use of the LeeImageFilter. +This example illustrates the use of the :doxygen:`LeeImageFilter`. This filter belongs to the family of the edge-preserving smoothing filters which are usually used for speckle reduction in radar images. The LeeFilter aplies a linear regression which minimizes the mean-square error in the frame of a multiplicative speckle model. -.. figure:: /Input/GomaSmall.png +.. |image1| image:: /Input/GomaSmall.png -.. figure:: /Output/GomaSmallLeeFiltered.png +.. |image2| image:: /Output/GomaSmallLeeFiltered.png + +.. _Figure1: + ++--------------------------+-------------------------+ +| |image1| | |image2| | ++--------------------------+-------------------------+ Result of applying the Lee filter to a SAR image. + -- GitLab