Skip to content
Snippets Groups Projects
Commit de3f6c75 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

WIP: start to refactor SinclairImageFilters using FunctorImageFilter

parent 8aa9f900
No related branches found
No related tags found
No related merge requests found
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef otbPolarimetryTags_h
#define otbPolarimetryTags_h
namespace otb
{
namespace polarimetry_tags
{
struct hh {};
struct hv {};
struct vh {};
struct vv {};
} // end namespace polarimetry_tags
} // end namespace otb
#endif
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef otbSinclairImageFilters_h
#define otbSinclairImageFilters_h
#include "otbPolarimetryTags.h"
#include "otbFunctorImageFilter.h"
#include "otbSinclairToCovarianceMatrixFunctor.h"
namespace otb
{
// This is the entire declaration of SinclairToCovarianceMatrixFilter
template <typename TInputImage, typename TOutputImage>
using SinclairToCovarianceMatrixFilter = FunctorImageFilter< Functor::SinclairToCovarianceMatrixFunctor <typename TInputImage::PixelType,typename TInputImage::PixelType,typename TInputImage::PixelType,typename TInputImage::PixelType,
typename TOutputImage::PixelType> ,
std::tuple<polarimetry_tags::hh,
polarimetry_tags::hv,
polarimetry_tags::vh,
polarimetry_tags::vv> >;
} // end namespace otb
#endif
......@@ -29,6 +29,7 @@ otb_module(OTBPolarimetry
DEPENDS
OTBCommon
OTBITK
OTBFunctor
TEST_DEPENDS
OTBImageBase
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment