Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,11 @@ class ITK_TEMPLATE_EXPORT FrequencyImageRegionConstIteratorWithIndex : public Im
void
Init()
{
this->m_FrequencyOrigin = this->m_Image->GetOrigin();
this->m_FrequencySpacing = this->m_Image->GetSpacing();
for (unsigned int dim = 0; dim < ImageType::ImageDimension; ++dim)
{
this->m_FrequencyOrigin[dim] = this->m_Image->GetOrigin()[dim];
this->m_FrequencySpacing[dim] = this->m_Image->GetSpacing()[dim];
}
}

FrequencyType m_FrequencyOrigin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ITK_TEMPLATE_EXPORT FrequencyImageRegionIteratorWithIndex
public:
/** Standard class type alias. */
using Self = FrequencyImageRegionIteratorWithIndex;
using Superclass = ImageRegionIteratorWithIndex<TImage>;
using Superclass = FrequencyImageRegionConstIteratorWithIndex<TImage>;

/** Types inherited from the Superclass */
using typename Superclass::IndexType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include "itkHalfHermitianToRealInverseFFTImageFilter.h"
#include "itkFFTShiftImageFilter.h"
#include "itkFrequencyBandImageFilter.h" // Simplest of frequency filters for testing
#include "itkFrequencyImageRegionConstIteratorWithIndex.h"
#include "itkFrequencyImageRegionIteratorWithIndex.h"
#include "itkFrequencyFFTLayoutImageRegionConstIteratorWithIndex.h"
#include "itkFrequencyFFTLayoutImageRegionIteratorWithIndex.h"
#include "itkFrequencyHalfHermitianFFTLayoutImageRegionConstIteratorWithIndex.h"
Expand Down Expand Up @@ -264,7 +266,9 @@ compareAllTypesOfIterators(typename TImageType::Pointer image, double difference
// Checks that an iterator that is just constructed by `IteratorType(image, region)` is at the begin.
TEST_F(FrequencyIterators, AreConstructedAtBegin)
{
CheckIteratorsConstructedAtBegin<itk::FrequencyFFTLayoutImageRegionConstIteratorWithIndex,
CheckIteratorsConstructedAtBegin<itk::FrequencyImageRegionConstIteratorWithIndex,
itk::FrequencyImageRegionIteratorWithIndex,
itk::FrequencyFFTLayoutImageRegionConstIteratorWithIndex,
itk::FrequencyFFTLayoutImageRegionIteratorWithIndex,
itk::FrequencyHalfHermitianFFTLayoutImageRegionConstIteratorWithIndex,
itk::FrequencyHalfHermitianFFTLayoutImageRegionIteratorWithIndex,
Expand Down