Commit 8ee302a3 authored by Cédric Traizet's avatar Cédric Traizet

Merge branch 'minor_cookbook_fixes' into 'develop'

DOC: Fixed typos

See merge request !695
parents 6fdd16e9 3208c034
Pipeline #3929 passed with stages
in 82 minutes and 13 seconds
......@@ -25,7 +25,7 @@ The operation to perform can be defined as a free function:
.. code-block:: cpp
double myFreeFunction(const double& int in) {...}
double myFreeFunction(const double& in) {...}
It can also be defined as a functor (i.e. a class defining ``operator()``:
......@@ -34,14 +34,14 @@ It can also be defined as a functor (i.e. a class defining ``operator()``:
class MyFunctor
{
public:
double operator()(const double& int in) {...}
double operator()(const double& in) {...}
};
It can also be defined as a lambda:
.. code-block:: cpp
auto myLambda = [](const double & int in) -> double {...}
auto myLambda = [](const double& in) -> double {...}
Creating a ``FunctorImageFilter``
......@@ -52,7 +52,7 @@ Once the operation to perform has been implemented, it is very easy to get an in
.. code-block:: cpp
auto filterFromFreeFunction = NewFunctorFilter(myFreeFunction);
auto filterFromFunctor = NewFunctorFilter(MyFunctor);
auto filterFromFunctor = NewFunctorFilter(MyFunctor());
auto filterFromLambda = NewFunctorFilter(myLambda);
And you can use it just like any other filter:
......@@ -114,7 +114,7 @@ Alternative prototype for performance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Automatic type deduction will also work with the following signature:
``void (const R&, T1 t1, T2 t2 ..., TN tn)``
``void (R&, T1 t1, T2 t2 ..., TN tn)``
This will be more efficient when ``R`` is of type ``itk::VariableLengthVector<T>`` and should be preferred in this case.
......
......@@ -220,5 +220,5 @@ man_pages = [
extlinks = {
'doxygen': ("http://www.orfeo-toolbox.org/doxygen/classotb_1_1%s.html", "otb::"),
'doxygen-itk': ("http://www.itk.org/Doxygen/html/classitk_1_1%s.html", "itk::")
'doxygen-itk': ("http://www.itk.org/Doxygen413/html/classitk_1_1%s.html", "itk::")
}
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