18#ifndef itkFrequencyShiftedFFTLayoutImageRegionConstIteratorWithIndex_h
19#define itkFrequencyShiftedFFTLayoutImageRegionConstIteratorWithIndex_h
114template <
typename TImage>
174 for (
unsigned int dim = 0; dim < TImage::ImageDimension; ++dim)
176 freqInd[dim] = this->m_PositionIndex[dim] - this->m_ZeroFrequencyIndex[dim];
195 IndexType freqInd = this->GetFrequencyBin();
198 for (
unsigned int dim = 0; dim < TImage::ImageDimension; ++dim)
200 freq[dim] = this->m_FrequencyOrigin[dim] + this->m_FrequencySpacing[dim] * freqInd[dim];
211 for (
unsigned int dim = 0; dim < TImage::ImageDimension; ++dim)
213 w2 += w[dim] * w[dim];
224 itkGetConstReferenceMacro(ZeroFrequencyIndex,
IndexType);
242 this->m_ActualXDimensionIsOdd = value;
244 itkGetMacro(ActualXDimensionIsOdd,
bool);
245 itkBooleanMacro(ActualXDimensionIsOdd);
254 IndexType minIndex = this->m_Image->GetLargestPossibleRegion().GetIndex();
255 SizeType sizeImage = this->m_Image->GetLargestPossibleRegion().GetSize();
256 for (
unsigned int dim = 0; dim < ImageType::ImageDimension; ++dim)
258 this->m_ZeroFrequencyIndex[dim] =
262 this->m_FrequencyOrigin[dim] = 0.0;
265 this->m_FrequencySpacing[dim] = 1.0 / (this->m_Image->GetSpacing()[dim] * sizeImage[dim]);
A multi-dimensional iterator templated over image type that walks pixels within a region and is speci...
IndexType m_ZeroFrequencyIndex
typename ImageType::SpacingType FrequencyType
IndexType GetFrequencyBin() const
FrequencyShiftedFFTLayoutImageRegionConstIteratorWithIndex(const Superclass &it)
FrequencyType m_FrequencySpacing
FrequencyShiftedFFTLayoutImageRegionConstIteratorWithIndex(const TImage *ptr, const RegionType ®ion)
FrequencyType GetFrequency() const
typename ImageType::SpacingValueType FrequencyValueType
void SetActualXDimensionIsOdd(bool value)
bool m_ActualXDimensionIsOdd
FrequencyType m_FrequencyOrigin
FrequencyShiftedFFTLayoutImageRegionConstIteratorWithIndex()
FrequencyValueType GetFrequencyModuloSquare() const
A base class for multi-dimensional iterators templated over image type that are designed to efficient...
typename TImage::AccessorType AccessorType
typename TImage::PixelType PixelType
typename TImage::RegionType RegionType
typename PixelContainer::Pointer PixelContainerPointer
typename TImage::OffsetType OffsetType
typename TImage::SizeType SizeType
typename TImage::IndexType IndexType
typename TImage::InternalPixelType InternalPixelType
typename TImage::PixelContainer PixelContainer
A multi-dimensional iterator templated over image type that walks an image region and is specialized ...
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....