Loading...
Searching...
No Matches
itkVectorMeanDiffusionImageFilter.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 itkVectorMeanDiffusionImageFilter_h
#define itkVectorMeanDiffusionImageFilter_h
#include "itkImageToImageFilter.h"
#include "itkImage.h"
#include "itkVector.h"
#include "itkNumericTraits.h"
#include "itkRescaleIntensityImageFilter.h"
namespace itk
{
template <class TInputImage, class TGrayValueImage>
class ITK_TEMPLATE_EXPORT VectorMeanDiffusionImageFilter : public ImageToImageFilter<TInputImage, TInputImage>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(VectorMeanDiffusionImageFilter);
using InputImageType = TInputImage;
using GrayValueImageType = TGrayValueImage;
using GrayValueImagePointer = typename GrayValueImageType::Pointer;
using Self = VectorMeanDiffusionImageFilter;
using Superclass = ImageToImageFilter<InputImageType, InputImageType>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
itkNewMacro(Self);
itkTypeMacro(VectorMeanDiffusionImageFilter, ImageToImageFilter);
using InputPixelType = typename InputImageType::PixelType;
using ValueType = typename InputPixelType::ValueType;
// typedef typename NumericTraits<InputPixelType>::RealType InputRealType;
using InputImageRegionType = typename InputImageType::RegionType;
using InputSizeType = typename InputImageType::SizeType;
using IndexType = typename InputImageType::IndexType;
using VectorRealType = Vector<double, Self::InputImageDimension>;
using DoubleImageType = Image<double, Self::InputImageDimension>;
using DoubleImagePointer = typename DoubleImageType::Pointer;
using GrayValuePixelType = typename GrayValueImageType::PixelType;
using RescaleImageFilterType = RescaleIntensityImageFilter<GrayValueImageType, DoubleImageType>;
using RescaleImageFilterPointer = typename RescaleImageFilterType::Pointer;
itkSetMacro(Radius, InputSizeType);
itkGetConstReferenceMacro(Radius, InputSizeType);
void
GenerateInputRequestedRegion() override;
itkSetMacro(NumberOfIterations, unsigned int);
itkGetConstMacro(NumberOfIterations, unsigned int);
void
SetGrayValueImage(GrayValueImageType * _arg);
typename GrayValueImageType::Pointer
GetGrayValueImage()
{
return this->m_GrayValueImage.GetPointer();
}
protected:
VectorMeanDiffusionImageFilter();
~VectorMeanDiffusionImageFilter() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
void
GenerateData() override;
private:
InputSizeType m_Radius{};
unsigned int m_NumberOfIterations{};
GrayValueImagePointer m_GrayValueImage{};
DoubleImagePointer m_Cx{};
RescaleImageFilterPointer m_RescaleFilter{};
void
FilterGrayValueImage();
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkVectorMeanDiffusionImageFilter.hxx"
#endif
#endif // end #ifndef itkVectorMeanDiffusionImageFilter_h
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition itkVectorMeanDiffusionImageFilter.h:78
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::m_NumberOfIterations
unsigned int m_NumberOfIterations
Definition itkVectorMeanDiffusionImageFilter.h:145
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::RescaleImageFilterType
RescaleIntensityImageFilter< GrayValueImageType, DoubleImageType > RescaleImageFilterType
Definition itkVectorMeanDiffusionImageFilter.h:87
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkVectorMeanDiffusionImageFilter.h:63
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::m_Cx
DoubleImagePointer m_Cx
Definition itkVectorMeanDiffusionImageFilter.h:149
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::RescaleImageFilterPointer
typename RescaleImageFilterType::Pointer RescaleImageFilterPointer
Definition itkVectorMeanDiffusionImageFilter.h:88
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::GrayValueImageType
GrayValueImageType GrayValueImageType
Definition itkVectorMeanDiffusionImageFilter.h:56
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::DoubleImagePointer
typename DoubleImageType::Pointer DoubleImagePointer
Definition itkVectorMeanDiffusionImageFilter.h:83
itk::VectorMeanDiffusionImageFilter::FilterGrayValueImage
void FilterGrayValueImage()
itk::VectorMeanDiffusionImageFilter::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::Self
VectorMeanDiffusionImageFilter Self
Definition itkVectorMeanDiffusionImageFilter.h:60
itk::VectorMeanDiffusionImageFilter::GenerateData
void GenerateData() override
itk::VectorMeanDiffusionImageFilter::~VectorMeanDiffusionImageFilter
~VectorMeanDiffusionImageFilter() override=default
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::ValueType
typename InputPixelType::ValueType ValueType
Definition itkVectorMeanDiffusionImageFilter.h:76
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::m_RescaleFilter
RescaleImageFilterPointer m_RescaleFilter
Definition itkVectorMeanDiffusionImageFilter.h:151
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::m_Radius
InputSizeType m_Radius
Definition itkVectorMeanDiffusionImageFilter.h:144
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::VectorRealType
Vector< double, Self::InputImageDimension > VectorRealType
Definition itkVectorMeanDiffusionImageFilter.h:81
itk::VectorMeanDiffusionImageFilter::VectorMeanDiffusionImageFilter
VectorMeanDiffusionImageFilter()
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::m_GrayValueImage
GrayValueImagePointer m_GrayValueImage
Definition itkVectorMeanDiffusionImageFilter.h:148
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::Pointer
SmartPointer< Self > Pointer
Definition itkVectorMeanDiffusionImageFilter.h:62
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::IndexType
typename InputImageType::IndexType IndexType
Definition itkVectorMeanDiffusionImageFilter.h:80
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::InputPixelType
typename InputImageType::PixelType InputPixelType
Definition itkVectorMeanDiffusionImageFilter.h:75
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::GrayValuePixelType
typename GrayValueImageType::PixelType GrayValuePixelType
Definition itkVectorMeanDiffusionImageFilter.h:84
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::InputImageType
VectorImageType InputImageType
Definition itkVectorMeanDiffusionImageFilter.h:55
itk::VectorMeanDiffusionImageFilter::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(VectorMeanDiffusionImageFilter)
itk::VectorMeanDiffusionImageFilter::itkStaticConstMacro
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
itk::VectorMeanDiffusionImageFilter::GetGrayValueImage
GrayValueImageType::Pointer GetGrayValueImage()
Definition itkVectorMeanDiffusionImageFilter.h:115
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::Superclass
ImageToImageFilter< InputImageType, InputImageType > Superclass
Definition itkVectorMeanDiffusionImageFilter.h:61
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::InputSizeType
typename InputImageType::SizeType InputSizeType
Definition itkVectorMeanDiffusionImageFilter.h:79
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::GrayValueImagePointer
typename GrayValueImageType::Pointer GrayValueImagePointer
Definition itkVectorMeanDiffusionImageFilter.h:57
itk::VectorMeanDiffusionImageFilter< VectorImageType, GrayValueImageType >::DoubleImageType
Image< double, Self::InputImageDimension > DoubleImageType
Definition itkVectorMeanDiffusionImageFilter.h:82
itk::VectorMeanDiffusionImageFilter::GenerateInputRequestedRegion
void GenerateInputRequestedRegion() override
itk::VectorMeanDiffusionImageFilter::SetGrayValueImage
void SetGrayValueImage(GrayValueImageType *_arg)
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |