19#ifndef itkTileMontage_h
20#define itkTileMontage_h
49template <
typename TImageType,
50 typename TCoordinate =
51 typename std::conditional<std::is_same<typename TImageType::PixelType, double>::value, double,
float>::type>
127 itkGetConstMacro(AbsoluteThreshold,
float);
138 itkGetConstMacro(RelativeThreshold,
float);
156 itkGetConstMacro(CropToOverlap,
bool);
194 m_Tiles[linearIndex] =
nullptr;
214 const TransformType *
269 template <
typename TImageToRead>
270 typename TImageToRead::Pointer
274 typename ImageType::Pointer
346 PCMOptimizerType::PeakInterpolationMethodEnum::Parabolic;
348 const typename ImageType::Pointer
m_Dummy = ImageType::New();
356 template <
typename TImageTypeInner,
typename TPixelAccumulateType,
typename TInterpolatorInner>
362#ifndef ITK_MANUAL_INSTANTIATION
363# include "itkTileMontage.hxx"
Different methods of padding the images to satisfy FFT size requirements.
A templated class holding a point in n-Dimensional image space.
Decorates any subclass of itkObject with a DataObject API.
SmartPointer< Self > Pointer
Data source that reads image data from a single file.
Control indentation during Print() invocation.
virtual void Modified() const
Base class for phase-correlation-based image registration.
typename FFTFilterType::OutputImageType ComplexImageType
TranslationTransform< typename MovingImageType::PointType::ValueType, ImageDimension > TransformType
TInternalPixelType InternalPixelType
typename OptimizerType::ConfidenceVector ConfidencesVector
PhaseCorrelationImageRegistrationMethodEnums::PaddingMethod PaddingMethodEnum
Computes the spectrum ratio in phase correlation method.
Defines common interface for optimizers, that estimates the shift from correlation surface.
PhaseCorrelationOptimizerEnums::PeakInterpolationMethod PeakInterpolationMethodEnum
DataObject * GetOutput(const DataObjectIdentifierType &key)
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
virtual void SetNthInput(DataObjectPointerArraySizeType idx, DataObject *input)
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx)
Make a DataObject of the correct type to used as the specified output.
Implements transparent reference counting.
Size< ImageDimension > SizeType
void SetInputTile(SizeValueType linearIndex, ImageType *image)
PCMType::PaddingMethodEnum m_PaddingMethod
static constexpr unsigned int ImageDimension
typename TransformType::OutputVectorType TranslationOffset
std::vector< OffsetVector > m_TransformCandidates
PointType m_OriginAdjustment
SizeValueType m_NumberOfPairs
DataObjectPointerArraySizeType nDIndexToLinearIndex(TileIndexType nDIndex) const
ImageFileReader< ImageType > ReaderType
SizeType m_ObligatoryPadding
ContinuousIndexType m_MinInner
void SetInputTile(TileIndexType position, const std::string &imageFilename)
typename ImageType::RegionType RegionType
typename ImageType::OffsetType OffsetType
typename PCMType::ConfidencesVector ConfidencesType
void GenerateData() override
void ReleaseMemory(TileIndexType finishedTile)
void RegisterPair(TileIndexType fixed, TileIndexType moving)
SmartPointer< Self > Pointer
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType) override
ContinuousIndex< typename TInterpolator::CoordinateType, ImageDimension > ContinuousIndexType
const TransformType * GetOutputTransform(TileIndexType position)
friend class TileMergeImageFilter
typename TransformType::ConstPointer TransformConstPointer
SpacingType m_ForcedSpacing
ContinuousIndexType m_MinOuter
void SetInputTile(TileIndexType position, ImageType *image)
void SetMontageSize(SizeType montageSize)
PhaseCorrelationOptimizer< RealType, ImageDimension > PCMOptimizerType
std::vector< ConfidencesType > m_CandidateConfidences
typename ImageType::SpacingType SpacingType
typename ImageType::IndexType ImageIndexType
TileIndexType LinearIndexTonDIndex(DataObjectPointerArraySizeType linearIndex) const
void UpdateMosaicBounds(TileIndexType index, TransformConstPointer transform, const ImageType *input, const ImageType *input0)
SmartPointer< const Self > ConstPointer
Size< ImageDimension > TileIndexType
typename PCMType::InternalPixelType RealType
std::vector< std::string > m_Filenames
float GetTileReliability(TileIndexType nDIndex) const
float GetTileReliability(DataObjectPointerArraySizeType linearIndex) const
typename ImageType::Pointer ImagePointer
SizeValueType m_LinearMontageSize
~TileMontage() override=default
std::mutex m_MemberProtector
float m_RelativeThreshold
std::atomic< SizeValueType > m_FinishedPairs
std::vector< float > m_TileReliabilities
DataObjectPointerArraySizeType ReferenceLinearIndex(DataObjectPointerArraySizeType candidateIndex) const
std::vector< float > TileReliabilities
std::vector< ImagePointer > m_Tiles
std::vector< TranslationOffset > m_CurrentAdjustments
void SetInputTile(SizeValueType linearIndex, const std::string &imageFilename)
TImageToRead::Pointer GetImageHelper(TileIndexType nDIndex, bool metadataOnly, RegionType region)
void PrintSelf(std::ostream &os, Indent indent) const override
PhaseCorrelationOperator< RealType, ImageDimension > PCMOperatorType
ImageType::Pointer GetImage(TileIndexType nDIndex, bool metadataOnly)
std::vector< FFTConstPointer > m_FFTCache
typename TransformType::Pointer TransformPointer
typename PCMType::TransformType TransformType
typename ImageType::PointType PointType
PCMOptimizerType::PeakInterpolationMethodEnum m_PeakInterpolationMethod
ContinuousIndexType m_MaxInner
const ImageType::Pointer m_Dummy
typename ImageType::ConstPointer ImageConstPointer
typename ImageType::PixelType PixelType
PhaseCorrelationImageRegistrationMethod< ImageType, ImageType, typename TInterpolator::CoordinateType > PCMType
typename DataObject::Pointer DataObjectPointer
typename FFTType::Pointer FFTPointer
void WriteOutTransform(TileIndexType index, TranslationOffset offset)
DataObjectDecorator< TransformType > TransformOutputType
float m_AbsoluteThreshold
std::deque< std::mutex > m_TileReadLocks
ContinuousIndexType m_MaxOuter
typename PCMType::ComplexImageType FFTType
void GenerateOutputInformation() override
std::vector< TranslationOffset > OffsetVector
SizeValueType m_PositionTolerance
typename FFTType::ConstPointer FFTConstPointer
virtual void SetObligatoryPadding(const SizeType pad)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
#define itkSetMacro(name, type)
Represent a n-dimensional size (bounds) of a n-dimensional image.