Loading...
Searching...
No Matches
elxPrepareImageTypeSupport.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* 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.txt
*
* 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 elxPrepareImageTypeSupport_h
#define elxPrepareImageTypeSupport_h
#include "elxElastixTemplate.h"
// ITK header files:
#include <itkImage.h>
#include <itkObject.h>
namespace elastix
{
template <unsigned VIndex>
class ElastixTypedef
{
public:
using ElastixType = ::itk::Object;
static constexpr const char * FixedPixelTypeString{ "" };
static constexpr const char * MovingPixelTypeString{ "" };
static constexpr unsigned int FixedDimension{ 0 };
static constexpr unsigned int MovingDimension{ 0 };
static constexpr bool IsDefined{ false };
};
} // namespace elastix
#define elxSupportedImageTypeMacro(_fPixelType, _fDim, _mPixelType, _mDim, _VIndex) \
template <> \
class ElastixTypedef<_VIndex> \
{ \
public: \
using FixedImageType = ::itk::Image<_fPixelType, _fDim>; \
using MovingImageType = ::itk::Image<_mPixelType, _mDim>; \
using ElastixType = ::elx::ElastixTemplate<FixedImageType, MovingImageType>; \
static constexpr const char * FixedPixelTypeString{ #_fPixelType }; \
static constexpr const char * MovingPixelTypeString{ #_mPixelType }; \
static constexpr unsigned int FixedDimension{ _fDim }; \
static constexpr unsigned int MovingDimension{ _mDim }; \
static constexpr bool IsDefined{ true }; \
}
#endif // end #ifndef elxPrepareImageTypeSupport_h
elastix::ElastixTypedef
Definition elxPrepareImageTypeSupport.h:35
elastix::ElastixTypedef::FixedDimension
static constexpr unsigned int FixedDimension
Definition elxPrepareImageTypeSupport.h:42
elastix::ElastixTypedef::MovingDimension
static constexpr unsigned int MovingDimension
Definition elxPrepareImageTypeSupport.h:43
elastix::ElastixTypedef::IsDefined
static constexpr bool IsDefined
Definition elxPrepareImageTypeSupport.h:45
elastix::ElastixTypedef::FixedPixelTypeString
static constexpr const char * FixedPixelTypeString
Definition elxPrepareImageTypeSupport.h:40
elastix::ElastixTypedef::ElastixType
::itk::Object ElastixType
Definition elxPrepareImageTypeSupport.h:39
elastix::ElastixTypedef::MovingPixelTypeString
static constexpr const char * MovingPixelTypeString
Definition elxPrepareImageTypeSupport.h:41
elxElastixTemplate.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |