32 m_BValueMap = bValueMap;
46 this->m_BValueMap =
map;
51 return this->m_BValueMap ==
static_cast<const Self&
>(property).m_BValueMap;
56 this->m_BValueMap =
static_cast<const Self&
>(property).m_BValueMap;
64 mitk::BValueMapProperty::GradientDirectionsContainerType::ConstIterator gdcit;
65 for( gdcit = gdc->Begin(); gdcit != gdc->End(); ++gdcit)
68 map[keyBValue].push_back(gdcit.Index());
80 if(gdc->ElementAt(i).one_norm() <= 0.0)
86 double twonorm = gdc->ElementAt(i).two_norm();
87 double bval = referenceBValue*twonorm*twonorm;
90 bval = ceil(bval - 0.5);
92 bval = floor(bval + 0.5);
101 result->UnRegister();
itk::SmartPointer< Self > Pointer
std::map< unsigned int, std::vector< unsigned int > > BValueMap
The BValueMap contains seperated IndicesVectors for each b value (index for GradientDirectionContaine...
static BValueMap CreateBValueMap(const GradientDirectionsContainerType *gdc, float referenceBValue)
DataCollection - Class to facilitate loading/accessing structured data.
const BValueMap &const BValueMap & GetBValueMap() const
itk::VectorContainer< IndexType, GradientDirectionType > GradientDirectionsContainerType
virtual bool IsEqual(const BaseProperty &property) const override
Abstract base class for properties.
static float GetBValueOfGradientDirection(unsigned int i, float referenceBValue, const GradientDirectionsContainerType *gdc)
virtual bool Assign(const BaseProperty &property) override
virtual itk::LightObject::Pointer InternalClone() const override
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 SetBValueMap(const BValueMap &map)