17 #include <itkRescaleIntensityImageFilter.h>
18 #include <itkCastImageFilter.h>
25 #include <mapExceptionObjectMacros.h>
60 itkDebugMacro(
"setting TargetNode to " << tNode);
74 itkDebugMacro(
"setting MovingNode to " << mNode);
88 itkDebugMacro(
"setting TargetImage to " << tImg);
97 itkDebugMacro(
"setting MovingImage to " << mImg);
104 template <
typename TPixelType,
unsigned int VImageDimension >
108 typedef itk::CastImageFilter<InputImageType, InternalImageType> CastFilterType;
109 typedef itk::RescaleIntensityImageFilter<InputImageType, InputImageType> RescaleFilterType;
114 rescaler->SetInput(input);
115 rescaler->SetOutputMinimum(0);
116 rescaler->SetOutputMaximum(255);
117 caster->SetInput(rescaler->GetOutput());
121 mitk::CastToMitkImage<>(internalImage,result);
127 Superclass::PrintSelf(os,indent);
130 os<<
"Error. Eval object points to invalid registration (NULL).";
134 os<<std::endl<<indent<<
"MatchPoint registration instance:";
140 os<<
"Error. Eval object points to invalid target image (NULL).";
144 os<<std::endl<<indent<<
"Target image instance:";
150 os<<
"Error. Eval object points to invalid moving image (NULL).";
154 os<<std::endl<<indent<<
"Moving image instance:";
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion()
itk::SmartPointer< Self > Pointer
virtual void SetRequestedRegionToLargestPossibleRegion()
mitk::DataNode::ConstPointer m_MovingNode
virtual ~RegEvaluationObject()
mitk::DataNode::ConstPointer m_TargetNode
mitk::Image::Pointer m_TargetImage
#define AccessFixedDimensionByItk_n(mitkImage, itkImageTypeFunction, dimension, va_tuple)
Access a mitk-image with known dimension by an itk-image with one or more parameters.
DataCollection - Class to facilitate loading/accessing structured data.
void SetTargetImage(const mitk::Image *tImg)
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const
itk::Image< double, 3 > InputImageType
void SetTargetNode(const mitk::DataNode *tNode)
Image class for storing images.
void doConversion(const ::itk::Image< TPixelType, VImageDimension > *input, mitk::Image::Pointer &result) const
virtual void SetRequestedRegion(const itk::DataObject *)
void SetMovingNode(const mitk::DataNode *mNode)
void SetMovingImage(const mitk::Image *mImg)
mitk::MAPRegistrationWrapper::Pointer m_Registration
mitk::Image::Pointer m_MovingImage
virtual bool VerifyRequestedRegion()
Class for nodes of the DataTree.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.