Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <itkCastImageFilter.h>
#include <mitkImageToItk.h>
#include <mitkPPArgCount.h>
#include <mitkPPCat.h>
#include <mitkPPExpand.h>
#include <mitkPPSeqForEach.h>
#include <mitkPPSeqForEachProduct.h>
#include <mitkPPSeqToTuple.h>
#include <mitkPPStringize.h>
#include <mitkPPTupleRem.h>
#include <sstream>
Go to the source code of this file.
Classes | |
class | mitk::AccessByItkException |
Exception class thrown in AccessByItk macros. More... | |
Namespaces | |
mitk | |
DataCollection - Class to facilitate loading/accessing structured data. | |
Macros | |
#define | _accessByItkPixelTypeException(pixelType, pixelTypeSeq) |
#define | _accessByItkDimensionException(dim, validDims) |
#define | _checkSpecificDimensionIter(r, mitkImage, dim) |
#define | _checkSpecificDimension(mitkImage, dimSeq) |
#define | _msvc_expand_bug(macro, arg) |
#define | _accessByItk(itkImageTypeFunctionAndImageSeq, pixeltype, dimension) |
#define | _accessByItkArgs(itkImageTypeFunction, type) |
#define | _accessByItkProductIter(r, product) |
#define | _accessFixedTypeByItk(itkImageTypeFunction, mitkImage, pixelTypeSeq, dimSeq) |
#define | _accessByItk_n(itkImageTypeFunctionAndImageSeq, pixeltype, dimension, args) |
#define | _accessByItkArgs_n(itkImageTypeFunction, type, args) |
#define | _accessByItkProductIter_n(r, product) |
#define | _accessFixedTypeByItk_n(itkImageTypeFunction, mitkImage, pixelTypeSeq, dimSeq, va_tuple) |
#define | AccessByItk(mitkImage, itkImageTypeFunction) |
Access a MITK image by an ITK image. More... | |
#define | AccessFixedPixelTypeByItk(mitkImage, itkImageTypeFunction, pixelTypeSeq) |
Access a mitk-image with known pixeltype (but unknown dimension) by an itk-image. More... | |
#define | AccessIntegralPixelTypeByItk(mitkImage, itkImageTypeFunction) |
Access a mitk-image with an integral pixel type by an itk-image. More... | |
#define | AccessFloatingPixelTypeByItk(mitkImage, itkImageTypeFunction) |
Access a mitk-image with a floating point pixel type by an ITK image. More... | |
#define | AccessVectorPixelTypeByItk(mitkImage, itkImageTypeFunction) |
#define | AccessFixedDimensionByItk(mitkImage, itkImageTypeFunction, dimension) |
Access a mitk-image with known dimension by an itk-image. More... | |
#define | AccessVectorFixedDimensionByItk(mitkImage, itkImageTypeFunction, dimension) |
#define | AccessFixedTypeByItk(mitkImage, itkImageTypeFunction, pixelTypeSeq, dimSeq) |
Access a mitk-image with known type (pixel type and dimension) by an itk-image. More... | |
#define | AccessByItk_n(mitkImage, itkImageTypeFunction, va_tuple) |
Access a MITK image by an ITK image with one or more parameters. More... | |
#define | AccessFixedPixelTypeByItk_n(mitkImage, itkImageTypeFunction, pixelTypeSeq, va_tuple) |
Access a mitk-image with known pixeltype (but unknown dimension) by an itk-image with one or more parameters. More... | |
#define | AccessIntegralPixelTypeByItk_n(mitkImage, itkImageTypeFunction, va_tuple) |
Access an mitk::Image with an integral pixel type by an ITK image with one or more parameters. More... | |
#define | AccessFloatingPixelTypeByItk_n(mitkImage, itkImageTypeFunction, va_tuple) |
Access an mitk::Image with a floating point pixel type by an ITK image with one or more parameters. More... | |
#define | AccessVectorPixelTypeByItk_n(mitkImage, itkImageTypeFunction, va_tuple) |
Access a vector mitk::Image by an ITK vector image with one or more parameters. More... | |
#define | AccessFixedDimensionByItk_n(mitkImage, itkImageTypeFunction, dimension, va_tuple) |
Access a mitk-image with known dimension by an itk-image with one or more parameters. More... | |
#define | AccessVectorFixedDimensionByItk_n(mitkImage, itkImageTypeFunction, dimension, va_tuple) |
Access a vector mitk-image with known dimension by a ITK vector image with one or more parameters. More... | |
#define | AccessFixedTypeByItk_n(mitkImage, itkImageTypeFunction, pixelTypeSeq, dimSeq, va_tuple) |
Access a mitk-image with known type (pixel type and dimension) by an itk-image with one or more parameters. More... | |
#define | AccessByItk_1(mitkImage, itkImageTypeFunction, arg1) |
#define | AccessFixedPixelTypeByItk_1(mitkImage, itkImageTypeFunction, pixelTypeSeq, arg1) |
#define | AccessFixedDimensionByItk_1(mitkImage, itkImageTypeFunction, dimension, arg1) |
#define | AccessFixedTypeByItk_1(mitkImage, itkImageTypeFunction, pixelTypeSeq, dimSeq, arg1) |
#define | AccessByItk_2(mitkImage, itkImageTypeFunction, arg1, arg2) |
#define | AccessFixedPixelTypeByItk_2(mitkImage, itkImageTypeFunction, pixelTypeSeq, arg1, arg2) |
#define | AccessFixedDimensionByItk_2(mitkImage, itkImageTypeFunction, dimension, arg1, arg2) |
#define | AccessFixedTypeByItk_2(mitkImage, itkImageTypeFunction, pixelTypeSeq, dimSeq, arg1, arg2) |
#define | AccessByItk_3(mitkImage, itkImageTypeFunction, arg1, arg2, arg3) |
#define | AccessFixedPixelTypeByItk_3(mitkImage, itkImageTypeFunction, pixelTypeSeq, arg1, arg2, arg3) |
#define | AccessFixedDimensionByItk_3(mitkImage, itkImageTypeFunction, dimension, arg1, arg2, arg3) |
#define | AccessFixedTypeByItk_3(mitkImage, itkImageTypeFunction, pixelTypeSeq, dimSeq, arg1, arg2, arg3) |
#define | _accessTwoImagesByItk(itkImageTypeFunction, pixeltype1, dim1, pixeltype2, dim2) |
#define | _accessTwoImagesByItkArgs2(itkImageTypeFunction, type1, type2) |
#define | _accessTwoImagesByItkArgs(product) |
#define | _accessTwoImagesByItkIter(r, product) |
#define | _accessTwoImagesByItkForEach(itkImageTypeFunction, tseq1, tseq2) |
#define | AccessTwoImagesFixedDimensionByItk(mitkImage1, mitkImage2, itkImageTypeFunction, dimension) |
Access two mitk-images with known dimension by itk-images. More... | |
#define _accessByItk | ( | itkImageTypeFunctionAndImageSeq, | |
pixeltype, | |||
dimension | |||
) |
Definition at line 82 of file mitkImageAccessByItk.h.
#define _accessByItk_n | ( | itkImageTypeFunctionAndImageSeq, | |
pixeltype, | |||
dimension, | |||
args | |||
) |
Definition at line 110 of file mitkImageAccessByItk.h.
#define _accessByItkArgs | ( | itkImageTypeFunction, | |
type | |||
) |
Definition at line 91 of file mitkImageAccessByItk.h.
#define _accessByItkArgs_n | ( | itkImageTypeFunction, | |
type, | |||
args | |||
) |
Definition at line 120 of file mitkImageAccessByItk.h.
#define _accessByItkDimensionException | ( | dim, | |
validDims | |||
) |
Definition at line 62 of file mitkImageAccessByItk.h.
#define _accessByItkPixelTypeException | ( | pixelType, | |
pixelTypeSeq | |||
) |
Definition at line 54 of file mitkImageAccessByItk.h.
#define _accessByItkProductIter | ( | r, | |
product | |||
) |
Definition at line 100 of file mitkImageAccessByItk.h.
#define _accessByItkProductIter_n | ( | r, | |
product | |||
) |
Definition at line 132 of file mitkImageAccessByItk.h.
#define _accessFixedTypeByItk | ( | itkImageTypeFunction, | |
mitkImage, | |||
pixelTypeSeq, | |||
dimSeq | |||
) |
Definition at line 105 of file mitkImageAccessByItk.h.
#define _accessFixedTypeByItk_n | ( | itkImageTypeFunction, | |
mitkImage, | |||
pixelTypeSeq, | |||
dimSeq, | |||
va_tuple | |||
) |
Definition at line 138 of file mitkImageAccessByItk.h.
#define _accessTwoImagesByItk | ( | itkImageTypeFunction, | |
pixeltype1, | |||
dim1, | |||
pixeltype2, | |||
dim2 | |||
) |
Definition at line 601 of file mitkImageAccessByItk.h.
#define _accessTwoImagesByItkArgs | ( | product | ) |
Definition at line 623 of file mitkImageAccessByItk.h.
#define _accessTwoImagesByItkArgs2 | ( | itkImageTypeFunction, | |
type1, | |||
type2 | |||
) |
Definition at line 620 of file mitkImageAccessByItk.h.
#define _accessTwoImagesByItkForEach | ( | itkImageTypeFunction, | |
tseq1, | |||
tseq2 | |||
) |
Definition at line 638 of file mitkImageAccessByItk.h.
#define _accessTwoImagesByItkIter | ( | r, | |
product | |||
) |
Definition at line 635 of file mitkImageAccessByItk.h.
#define _checkSpecificDimension | ( | mitkImage, | |
dimSeq | |||
) |
Definition at line 74 of file mitkImageAccessByItk.h.
#define _checkSpecificDimensionIter | ( | r, | |
mitkImage, | |||
dim | |||
) |
Definition at line 69 of file mitkImageAccessByItk.h.
#define _msvc_expand_bug | ( | macro, | |
arg | |||
) |
Definition at line 78 of file mitkImageAccessByItk.h.
#define AccessByItk_1 | ( | mitkImage, | |
itkImageTypeFunction, | |||
arg1 | |||
) |
Definition at line 571 of file mitkImageAccessByItk.h.
Referenced by mitk::GIFVolumetricStatistics::CalculateFeatures(), mitk::BoundingShapeCropper::ComputeData(), mitk::LabelSetImage::Concatenate(), mitk::CLUtil::CountVoxel(), mitk::WatershedTool::DoIt(), mitk::MorphologicalOperations::FillHoles(), mitk::FeatureBasedEdgeDetectionFilter::GenerateData(), mitk::ImageToPointCloudFilter::GenerateData(), mitk::CompareImageDataFilter::GenerateData(), mitk::ImageStatisticsCalculator::GetStatistics(), mitk::CLUtil::MergeLabels(), mitk::PyramidalRegistrationMethodAccessFunctor::operator()(), mitk::ImageRegistrationMethodAccessFunctor::operator()(), mitk::RTDoseReader::Read(), mitk::LabelSetImage::SetActiveLayer(), Step6::StartRegionGrowing(), mitk::OtsuTool3D::UpdateBinaryPreview(), and mitk::ImageWriter::WriteByITK().
#define AccessByItk_2 | ( | mitkImage, | |
itkImageTypeFunction, | |||
arg1, | |||
arg2 | |||
) |
Definition at line 579 of file mitkImageAccessByItk.h.
Referenced by Assert_ItkImportWithinAccessByItkSucceded_ReturnsTrue(), mitk::LabeledImageVolumeCalculator::Calculate(), mitk::GIFVolumetricStatistics::CalculateFeatures(), mitk::ImageStatisticsHolder::ComputeImageStatistics(), mitk::ConvertLabelSetImageToImage(), mitk::CLUtil::CountVoxel(), mitk::LabelSetImage::CreateLabelMask(), mitk::LabelSetImage::EraseLabel(), mitk::GeometryClipImageFilter::GenerateData(), mitk::CLUtil::InsertLabel(), main(), mitk::LabelSetImage::MaskStamp(), mitk::LabelSetImage::MergeLabel(), mitk::LabelSetImage::MergeLabels(), mitk::PickingTool::OnPointAdded(), QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation(), and mitk::LabelSetImage::UpdateCenterOfMass().
#define AccessByItk_3 | ( | mitkImage, | |
itkImageTypeFunction, | |||
arg1, | |||
arg2, | |||
arg3 | |||
) |
Definition at line 588 of file mitkImageAccessByItk.h.
Referenced by mitk::GIFGrayLevelRunLength::CalculateFeatures(), mitk::GIFCooccurenceMatrix::CalculateFeatures(), mitk::GIFFirstOrderStatistics::CalculateFeatures(), mitk::PixelManipulationTool::CalculateImage(), mitk::MorphologicalOperations::Closing(), mitk::MorphologicalOperations::Dilate(), mitk::MorphologicalOperations::Erode(), mitk::FeatureBasedEdgeDetectionFilter::GenerateData(), mitk::HeightFieldSurfaceClipImageFilter::GenerateData(), main(), and mitk::MorphologicalOperations::Opening().
#define AccessFixedDimensionByItk_1 | ( | mitkImage, | |
itkImageTypeFunction, | |||
dimension, | |||
arg1 | |||
) |
Definition at line 574 of file mitkImageAccessByItk.h.
Referenced by mitk::CLUtil::CreateCheckerboardMask(), mitk::ImageLiveWireContourModelFilter::CreateDynamicCostMap(), mitk::PartialVolumeAnalysisHistogramCalculator::ExtractImageAndMask(), mitk::ImageStatisticsCalculator::ExtractImageAndMask(), mitk::CLUtil::FillHoleGrayscale(), mitk::Convert2Dto3DImageFilter::GenerateData(), mitk::DWIHeadMotionCorrectionFilter::GenerateData(), mitk::AutoCropImageFilter::GenerateData(), mitk::LabelSetImageToSurfaceFilter::GenerateData(), mitk::LabeledImageToSurfaceFilter::GetAvailableLabels(), mitk::PlanarFigureSegmentationController::GetInterpolationResult(), mitk::PyramidImageRegistrationMethod::GetResampledMovingImage(), mitk::ShapeBasedInterpolationAlgorithm::Interpolate(), mitk::SliceBasedInterpolationController::SetChangedSlice(), mitk::SegmentationInterpolationController::SetChangedSlice(), mitk::SegmentationInterpolationController::SetChangedVolume(), mitk::SliceBasedInterpolationController::SetWorkingImage(), and mitk::SurfaceStampImageFilter::SurfaceStamp().
#define AccessFixedDimensionByItk_2 | ( | mitkImage, | |
itkImageTypeFunction, | |||
dimension, | |||
arg1, | |||
arg2 | |||
) |
Definition at line 583 of file mitkImageAccessByItk.h.
Referenced by QmitkSliceBasedInterpolatorWidget::AcceptAllInterpolations(), mitk::BoundingObjectCutter::ComputeData(), mitk::PartialVolumeAnalysisHistogramCalculator::ComputeStatistics(), mitk::ImageStatisticsCalculator::ComputeStatistics(), mitk::BinaryThresholdTool::CreateNewSegmentationFromThreshold(), mitk::BinaryThresholdULTool::CreateNewSegmentationFromThreshold(), mitk::CLUtil::GaussianFilter(), mitk::HotspotMaskGenerator::GetMask(), mitk::CLUtil::GrabLabel(), mitk::CLUtil::InterpolateCheckerboardPrediction(), mitk::CLUtil::LogicalAndImages(), main(), QmitkSliceBasedInterpolatorWidget::OnAcceptInterpolationClicked(), mitk::LiveWireTool2D::OnInitLiveWire(), mitk::RegionGrowingTool::OnMousePressed(), mitk::CalculateGrayValueStatisticsTool::ProcessOneWorkingData(), and mitk::SegmentationInterpolationController::SetSegmentationVolume().
#define AccessFixedDimensionByItk_3 | ( | mitkImage, | |
itkImageTypeFunction, | |||
dimension, | |||
arg1, | |||
arg2, | |||
arg3 | |||
) |
Definition at line 592 of file mitkImageAccessByItk.h.
Referenced by mitk::CLUtil::ClosingBinary(), mitk::PartialVolumeAnalysisHistogramCalculator::ComputeStatistics(), mitk::ImageStatisticsCalculator::ComputeStatistics(), mitk::CLUtil::ConnectedComponentsImage(), mitk::CLUtil::DilateBinary(), mitk::CLUtil::DilateGrayscale(), mitk::CLUtil::ErodeBinary(), mitk::CLUtil::ErodeGrayscale(), mitk::PartialVolumeAnalysisHistogramCalculator::ExtractImageAndMask(), mitk::ShapeBasedInterpolationAlgorithm::Interpolate(), mitk::RegionGrowingTool::OnMouseMoved(), mitk::RegionGrowingTool::OnMousePressedOutside(), mitk::PartialVolumeAnalysisClusteringCalculator::PerformClustering(), mitk::PartialVolumeAnalysisClusteringCalculator::PerformQuantification(), mitk::PartialVolumeAnalysisClusteringCalculator::PerformQuantiles(), mitk::CLUtil::ProbabilityMap(), and mitk::SegTool2D::WritePreviewOnWorkingImage().
#define AccessFixedPixelTypeByItk_1 | ( | mitkImage, | |
itkImageTypeFunction, | |||
pixelTypeSeq, | |||
arg1 | |||
) |
Definition at line 572 of file mitkImageAccessByItk.h.
Referenced by mitk::ImageWriter::WriteByITK().
#define AccessFixedPixelTypeByItk_2 | ( | mitkImage, | |
itkImageTypeFunction, | |||
pixelTypeSeq, | |||
arg1, | |||
arg2 | |||
) |
Definition at line 581 of file mitkImageAccessByItk.h.
Referenced by mitk::RGBToRGBACastImageFilter::GenerateData().
#define AccessFixedPixelTypeByItk_3 | ( | mitkImage, | |
itkImageTypeFunction, | |||
pixelTypeSeq, | |||
arg1, | |||
arg2, | |||
arg3 | |||
) |
Definition at line 590 of file mitkImageAccessByItk.h.
#define AccessFixedTypeByItk_1 | ( | mitkImage, | |
itkImageTypeFunction, | |||
pixelTypeSeq, | |||
dimSeq, | |||
arg1 | |||
) |
Definition at line 576 of file mitkImageAccessByItk.h.
Referenced by mitk::CastToItkImage(), and mitk::CastToItkImage< itkImageRGBUS3 >().
#define AccessFixedTypeByItk_2 | ( | mitkImage, | |
itkImageTypeFunction, | |||
pixelTypeSeq, | |||
dimSeq, | |||
arg1, | |||
arg2 | |||
) |
Definition at line 585 of file mitkImageAccessByItk.h.
#define AccessFixedTypeByItk_3 | ( | mitkImage, | |
itkImageTypeFunction, | |||
pixelTypeSeq, | |||
dimSeq, | |||
arg1, | |||
arg2, | |||
arg3 | |||
) |
Definition at line 594 of file mitkImageAccessByItk.h.
#define AccessFloatingPixelTypeByItk | ( | mitkImage, | |
itkImageTypeFunction | |||
) |
Access a mitk-image with a floating point pixel type by an ITK image.
See AccessByItk for details.
mitkImage | The MITK input image. |
itkImageTypeFunction | The templated access-function to be called. |
mitk::AccessByItkException | If mitkImage is of unsupported pixel type or dimension. |
Definition at line 254 of file mitkImageAccessByItk.h.
#define AccessFloatingPixelTypeByItk_n | ( | mitkImage, | |
itkImageTypeFunction, | |||
va_tuple | |||
) |
Access an mitk::Image with a floating point pixel type by an ITK image with one or more parameters.
See AccessByItk_n for details.
va_tuple | A variable length tuple containing the arguments to be passed to the access function itkImageTypeFunction, e.g. ("first", 2, THIRD). |
mitkImage | The MITK input image. |
itkImageTypeFunction | The templated access-function to be called. |
mitk::AccessByItkException | If mitkImage is of unsupported pixel type or dimension. |
Definition at line 450 of file mitkImageAccessByItk.h.
#define AccessIntegralPixelTypeByItk | ( | mitkImage, | |
itkImageTypeFunction | |||
) |
Access a mitk-image with an integral pixel type by an itk-image.
See AccessByItk for details.
mitkImage | The MITK input image. |
itkImageTypeFunction | The templated access-function to be called. |
mitk::AccessByItkException | If mitkImage is of unsupported pixel type or dimension. |
Definition at line 236 of file mitkImageAccessByItk.h.
#define AccessIntegralPixelTypeByItk_n | ( | mitkImage, | |
itkImageTypeFunction, | |||
va_tuple | |||
) |
Access an mitk::Image with an integral pixel type by an ITK image with one or more parameters.
See AccessByItk_n for details.
va_tuple | A variable length tuple containing the arguments to be passed to the access function itkImageTypeFunction, e.g. ("first", 2, THIRD). |
mitkImage | The MITK input image. |
itkImageTypeFunction | The templated access-function to be called. |
mitk::AccessByItkException | If mitkImage is of unsupported pixel type or dimension. |
Definition at line 426 of file mitkImageAccessByItk.h.
#define AccessVectorFixedDimensionByItk | ( | mitkImage, | |
itkImageTypeFunction, | |||
dimension | |||
) |
Definition at line 286 of file mitkImageAccessByItk.h.
#define AccessVectorPixelTypeByItk | ( | mitkImage, | |
itkImageTypeFunction | |||
) |
Definition at line 258 of file mitkImageAccessByItk.h.
#define AccessVectorPixelTypeByItk_n | ( | mitkImage, | |
itkImageTypeFunction, | |||
va_tuple | |||
) |
Access a vector mitk::Image by an ITK vector image with one or more parameters.
See AccessByItk_n for details.
va_tuple | A variable length tuple containing the arguments to be passed to the access function itkImageTypeFunction, e.g. ("first", 2, THIRD). |
mitkImage | The MITK input image. |
itkImageTypeFunction | The templated access-function to be called. |
mitk::AccessByItkException | If mitkImage is of unsupported pixel type or dimension. |
Definition at line 472 of file mitkImageAccessByItk.h.
Referenced by mitk::ImageStatisticsHolder::ComputeImageStatistics(), and mitk::ConvertImageToLabelSetImage().