27 #include <QThreadPool>
29 #include <mapEvents.h>
57 return dynamic_cast<const map::core::RegistrationBase *
>(wrapper->
GetRegistration());
62 const map::events::AnyMatchPointEvent *pMAPEvent =
dynamic_cast<const map::events::AnyMatchPointEvent *
>(&event);
66 emit
AlgorithmInfo(QString::fromStdString(pMAPEvent->getComment()));
99 if (spResultImage.IsNotNull())
105 emit
Error(QString(
"Error when when refining image geometry."));
108 catch (std::exception &e)
110 emit
Error(QString(
"Error when refining image geometry. Error description: ") + QString::fromLatin1(e.what()));
114 emit
Error(QString(
"Unknown error when refining image geometry."));
144 if (spResultData.IsNotNull())
150 emit
Error(QString(
"Error when mapping input data to result."));
155 catch (std::exception &e)
157 emit
Error(QString(
"Error when mapping data. Error description: ") + QString::fromLatin1(e.what()));
161 emit
Error(QString(
"Unkown error when mapping data."));
void OnMapAlgorithmEvent(::itk::Object *, const itk::EventObject &event)
mitk::BaseData::ConstPointer m_spInputData
QmitkMappingJobSettings()
struct for data of a point
mitk::DataNode::Pointer m_spRegNode
const map::core::RegistrationBase * GetRegistration() const
MAPRegistrationWrapper Wrapper class to allow the handling of MatchPoint registration objects as mitk...
mitk::PointSpecificationType pointSpec
MITKMATCHPOINTREGISTRATION_EXPORT::mitk::PointSet::Pointer map(const ::mitk::PointSet *input, const RegistrationType *registration, int timeStep=-1, bool throwOnMappingError=true, const ::mitk::PointSet::PointDataType &errorPointValue=::mitk::PointSet::PointDataType())
map::core::RegistrationBase * GetRegistration()
Data structure which stores a set of points. Superclass of mitk::Mesh.
Image class for storing images.
MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer refineGeometry(const InputImageType *input, const RegistrationType *registration, bool throwOnError=true)
void AlgorithmInfo(QString info)
::itk::MemberCommand< QmitkMappingJob >::Pointer m_spCommand
mitk::BaseGeometry::Pointer m_spRefGeometry
mitk::BaseData::Pointer m_spMappedData
const mitk::Image * GetInputDataAsImage() const
const mitk::PointSet * GetInputDataAsPointSet() const
bool m_doGeometryRefinement
mitk::ImageMappingInterpolator::Type m_InterpolatorType
MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer map(const InputImageType *input, const RegistrationType *registration, bool throwOnOutOfInputAreaError=false, const double &paddingValue=0, const ResultImageGeometryType *resultGeometry=NULL, bool throwOnMappingError=true, const double &errorValue=0, mitk::ImageMappingInterpolator::Type interpolatorType=mitk::ImageMappingInterpolator::Linear)
void MapResultIsAvailable(mitk::BaseData::Pointer spMappedData, const QmitkMappingJob *job)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.