MCPcopy Create free account
hub / github.com/MITK/MITK / SetMasks

Method SetMasks

Modules/MatchPointRegistration/src/Helper/mitkMaskedAlgorithmHelper.cpp:82–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 };
81
82 bool MaskedAlgorithmHelper::SetMasks(const mitk::Image* movingMask, const mitk::Image* targetMask)
83 {
84 if (! m_AlgorithmBase) mapDefaultExceptionStaticMacro(<< "Error, cannot set data. Helper has no algorithm defined.");
85
86 if (! CheckSupport(movingMask, targetMask)) return false;
87
88 unsigned int movingDim = m_AlgorithmBase->getMovingDimensions();
89 unsigned int targetDim = m_AlgorithmBase->getTargetDimensions();
90
91 if (movingDim!=targetDim) return false;
92
93 if (movingDim == 2)
94 {
95 return DoSetMasks<2,2>(movingMask, targetMask);
96 }
97 else if (movingDim == 3)
98 {
99 return DoSetMasks<3,3>(movingMask, targetMask);
100 }
101 return false;
102 };
103
104 template<unsigned int VMovingDimension, unsigned int VTargetDimension>
105 bool MaskedAlgorithmHelper::DoSetMasks(const mitk::Image* movingMask, const mitk::Image* targetMask)

Callers 3

mainFunction · 0.80
DoFrameRegistrationMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected