template<typename TImageType, typename TCoordinate = typename std::conditional<std::is_same<typename TImageType::PixelType, double>::value, double, float>::type>
class itk::TileMontage< TImageType, TCoordinate >
Determines registrations for an n-Dimensional mosaic of images.
Determines registrations which can be used to resample a mosaic into a single image.
This deals with n-dimensional rectangular arrays of image tiles. Arbitrarily shaped tile arrays (e.g. circular) are not directly supported. A possible (untested) workaround is adding all-zero (black) tiles around the shape to make a regular rectangular tile array (2D, 3D, or nD).
Take a look a documentation of parameters, most influential of which is PositionTolerance.
- Author
- Dženan Zukić, dzena.nosp@m.n.zu.nosp@m.kic@k.nosp@m.itwa.nosp@m.re.co.nosp@m.m
Definition at line 52 of file itkTileMontage.h.
|
| void | GenerateData () override |
| |
| void | GenerateOutputInformation () override |
| |
| ImageType::Pointer | GetImage (TileIndexType nDIndex, bool metadataOnly) |
| |
| template<typename TImageToRead> |
| TImageToRead::Pointer | GetImageHelper (TileIndexType nDIndex, bool metadataOnly, RegionType region) |
| |
| TileIndexType | LinearIndexTonDIndex (DataObjectPointerArraySizeType linearIndex) const |
| |
| virtual DataObjectPointer | MakeOutput (const DataObjectIdentifierType &) |
| |
| DataObjectPointer | MakeOutput (DataObjectPointerArraySizeType) override |
| |
| DataObjectPointerArraySizeType | nDIndexToLinearIndex (TileIndexType nDIndex) const |
| |
| void | OptimizeTiles () |
| |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| |
| DataObjectPointerArraySizeType | ReferenceLinearIndex (DataObjectPointerArraySizeType candidateIndex) const |
| |
| void | RegisterPair (TileIndexType fixed, TileIndexType moving) |
| |
| void | ReleaseMemory (TileIndexType finishedTile) |
| |
| | TileMontage () |
| |
| void | UpdateMosaicBounds (TileIndexType index, TransformConstPointer transform, const ImageType *input, const ImageType *input0) |
| |
| void | WriteOutTransform (TileIndexType index, TranslationOffset offset) |
| |
| | ~TileMontage () override=default |
| |
| virtual void | AddInput (DataObject *input) |
| |
| void | AddOptionalInputName (const DataObjectIdentifierType &) |
| |
| void | AddOptionalInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx) |
| |
| virtual void | AddOutput (DataObject *output) |
| |
| bool | AddRequiredInputName (const DataObjectIdentifierType &) |
| |
| bool | AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx) |
| |
| virtual void | CacheInputReleaseDataFlags () |
| |
| virtual void | GenerateInputRequestedRegion () |
| |
| virtual void | GenerateOutputRequestedRegion (DataObject *output) |
| |
| DataObject * | GetInput (const DataObjectIdentifierType &key) |
| |
| const DataObject * | GetInput (const DataObjectIdentifierType &key) const |
| |
| virtual const DataObjectPointerArraySizeType & | GetNumberOfRequiredInputs () const |
| |
| virtual const DataObjectPointerArraySizeType & | GetNumberOfRequiredOutputs () const |
| |
| bool | IsIndexedInputName (const DataObjectIdentifierType &) const |
| |
| bool | IsIndexedOutputName (const DataObjectIdentifierType &) const |
| |
| bool | IsRequiredInputName (const DataObjectIdentifierType &) const |
| |
| DataObjectPointerArraySizeType | MakeIndexFromInputName (const DataObjectIdentifierType &name) const |
| |
| DataObjectPointerArraySizeType | MakeIndexFromOutputName (const DataObjectIdentifierType &name) const |
| |
| DataObjectIdentifierType | MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const |
| |
| DataObjectIdentifierType | MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const |
| |
| virtual void | PopBackInput () |
| |
| virtual void | PopFrontInput () |
| |
| | ProcessObject () |
| |
| virtual void | PropagateResetPipeline () |
| |
| virtual void | PushBackInput (const DataObject *input) |
| |
| virtual void | PushFrontInput (const DataObject *input) |
| |
| virtual void | ReleaseInputs () |
| |
| virtual void | RemoveInput (const DataObjectIdentifierType &key) |
| |
| virtual void | RemoveInput (DataObjectPointerArraySizeType) |
| |
| virtual void | RemoveOutput (const DataObjectIdentifierType &key) |
| |
| virtual void | RemoveOutput (DataObjectPointerArraySizeType idx) |
| |
| bool | RemoveRequiredInputName (const DataObjectIdentifierType &) |
| |
| virtual void | RestoreInputReleaseDataFlags () |
| |
| virtual void | SetInput (const DataObjectIdentifierType &key, DataObject *input) |
| |
| virtual void | SetNthInput (DataObjectPointerArraySizeType idx, DataObject *input) |
| |
| virtual void | SetNthOutput (DataObjectPointerArraySizeType idx, DataObject *output) |
| |
| void | SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num) |
| |
| void | SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num) |
| |
| virtual void | SetNumberOfRequiredInputs (DataObjectPointerArraySizeType) |
| |
| virtual void | SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg) |
| |
| virtual void | SetOutput (const DataObjectIdentifierType &name, DataObject *output) |
| |
| virtual void | SetPrimaryInput (DataObject *object) |
| |
| virtual void | SetPrimaryOutput (DataObject *object) |
| |
| void | SetRequiredInputNames (const NameArray &) |
| |
| virtual void | VerifyInputInformation () const |
| |
| virtual void | VerifyPreconditions () const |
| |
| | ~ProcessObject () override |
| |
| DataObject * | GetInput (DataObjectPointerArraySizeType idx) |
| |
| const DataObject * | GetInput (DataObjectPointerArraySizeType idx) const |
| |
| DataObject * | GetPrimaryInput () |
| |
| const DataObject * | GetPrimaryInput () const |
| |
| virtual void | SetPrimaryInputName (const DataObjectIdentifierType &key) |
| |
| virtual const char * | GetPrimaryInputName () const |
| |
| DataObject * | GetOutput (const DataObjectIdentifierType &key) |
| |
| const DataObject * | GetOutput (const DataObjectIdentifierType &key) const |
| |
| virtual void | SetPrimaryOutputName (const DataObjectIdentifierType &key) |
| |
| virtual const char * | GetPrimaryOutputName () const |
| |
| DataObject * | GetOutput (DataObjectPointerArraySizeType i) |
| |
| const DataObject * | GetOutput (DataObjectPointerArraySizeType i) const |
| |
| DataObject * | GetPrimaryOutput () |
| |
| const DataObject * | GetPrimaryOutput () const |
| |
| virtual bool | GetThreaderUpdateProgress () const |
| |
| virtual void | ThreaderUpdateProgressOn () |
| |
| virtual void | ThreaderUpdateProgressOff () |
| |
| virtual void | SetThreaderUpdateProgress (bool arg) |
| |
| | Object () |
| |
| bool | PrintObservers (std::ostream &os, Indent indent) const |
| |
| virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
| |
| | ~Object () override |
| |
| virtual LightObject::Pointer | InternalClone () const |
| |
| | LightObject () |
| |
| virtual void | PrintHeader (std::ostream &os, Indent indent) const |
| |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
| |
| virtual | ~LightObject () |
| |
template<typename TImageType, typename TCoordinate = typename std::conditional<std::is_same<typename TImageType::PixelType, double>::value, double, float>::type>
| using itk::TileMontage< TImageType, TCoordinate >::TileReliabilities = std::vector<float> |
Reliability of each tile, highest normalized to 1.0.
Definition at line 221 of file itkTileMontage.h.
template<typename TImageType, typename TCoordinate = typename std::conditional<std::is_same<typename TImageType::PixelType, double>::value, double, float>::type>
| virtual::itk::LightObject::Pointer itk::TileMontage< TImageType, TCoordinate >::CreateAnother |
( |
| ) |
const |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
template<typename TImageType, typename TCoordinate = typename std::conditional<std::is_same<typename TImageType::PixelType, double>::value, double, float>::type>
template<typename TImageType, typename TCoordinate = typename std::conditional<std::is_same<typename TImageType::PixelType, double>::value, double, float>::type>
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ProcessObject.
template<typename TImageType, typename TCoordinate = typename std::conditional<std::is_same<typename TImageType::PixelType, double>::value, double, float>::type>
| virtual void itk::TileMontage< TImageType, TCoordinate >::SetAbsoluteThreshold |
( |
float | _arg | ) |
|
|
virtual |
Set/Get absolute registration threshold. The maximum allowed residual error for a registration pair during global optimization. Expressed in number of pixels. Default: 1.0. Reasonable values are from around 0.8 to around 1.5. When a registration pair exceeds the threshold, it is replaced by the next best candidate for that pair. If all canidates are exhausted, the registration pair is assumed to have no translation. The weight of this equation is also significantly reduced.
template<typename TImageType, typename TCoordinate = typename std::conditional<std::is_same<typename TImageType::PixelType, double>::value, double, float>::type>
| virtual void itk::TileMontage< TImageType, TCoordinate >::SetCropToOverlap |
( |
bool | _arg | ) |
|
|
virtual |
Set/Get tile cropping. Should tiles be cropped to overlapping region for computing the cross correlation? Default: True.
This improves results, and in case overlaps are less than 25% computation is also faster.
template<typename TImageType, typename TCoordinate = typename std::conditional<std::is_same<typename TImageType::PixelType, double>::value, double, float>::type>
Set/Get obligatory padding. If set, padding of this many pixels is added on both beginning and end sides of each dimension of the image. Default value of 8 is usually fine.
Definition at line 162 of file itkTileMontage.h.
template<typename TImageType, typename TCoordinate = typename std::conditional<std::is_same<typename TImageType::PixelType, double>::value, double, float>::type>
Set/Get tile positioning precision. Get/Set expected maximum linear translation needed, in pixels. Zero (the default) means unknown, and allows translations up to about half the image size. This is an important parameter for reliability of pair-wise registrations, but it is microscope-dependent so we cannot have a restrictive default.
template<typename TImageType, typename TCoordinate = typename std::conditional<std::is_same<typename TImageType::PixelType, double>::value, double, float>::type>
| virtual void itk::TileMontage< TImageType, TCoordinate >::SetRelativeThreshold |
( |
float | _arg | ) |
|
|
virtual |
Set/Get relative registration threshold. The maximum allowed deviation for a registration pair during global optimization. Expressed in multiples of standard deviation. Default: 3.0. Reasonable values are from around 2 to around 5. The deviation is calculated by taking the translations of all the registration pairs, while assuming zero mean. This implies expectation that deviations from expected positions for all registration pairs are similar. The pairs that don't satify this will be penalized.
template<typename TImageType, typename TCoordinate = typename std::conditional<std::is_same<typename TImageType::PixelType, double>::value, double, float>::type>
template<typename TImageTypeInner, typename TPixelAccumulateType, typename TInterpolatorInner>