From 73b05cb3c3fc99d4be1daf061198e855aae4b13f Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@orfeo-toolbox.org> Date: Tue, 4 Aug 2015 17:52:24 +0200 Subject: [PATCH] DOC: Adding doxygen documentation for new functions --- Modules/Core/ImageBase/include/otbNoDataHelper.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Modules/Core/ImageBase/include/otbNoDataHelper.h b/Modules/Core/ImageBase/include/otbNoDataHelper.h index a1a5d9363d..d626e49f29 100644 --- a/Modules/Core/ImageBase/include/otbNoDataHelper.h +++ b/Modules/Core/ImageBase/include/otbNoDataHelper.h @@ -53,6 +53,18 @@ std::vector<bool> & flags, const std::vector<double> & values) { } /** +* Reads a pixel and change the no data value if it is found. No data +* value is changed either if the pixel value is NaN or if the pixel +* value equals the no data value and flag is true. +* +* \param pixel The pixel to process \param flags A vector of size > 1 +* containing a flag per band to indicate if a no data value is +* available for this band +* \param values A vector of size > 1 corresponding to the current no data +* value for each band. If flag is 0, the value will be ignored. +* \param newValues A vector of size > 1 corresponding to the new no data +* value for each band. If flag is 0, the value will be ignored. +* */ template<typename T> T ChangeNoData(const T & pixel, const std::vector<bool> & flags, @@ -99,6 +111,10 @@ template <typename T> bool IsNoData(const itk::VariableLengthVector<T> & pixel, return false; } + +/** + * Specialization of ChangeNoData function to handle itk::VariableLengthVector + */ template <typename T> itk::VariableLengthVector<T> ChangeNoData(const itk::VariableLengthVector<T> & pixel, const std::vector<bool> & flags, const std::vector<double> & values, -- GitLab