20 m_AbsorptionCoefficient = 0;
21 m_ScatteringCoefficient = 0;
22 m_AnisotopyCoefficient = 0;
23 m_BifurcationFrequency = 0;
24 m_DoPartialVolume =
false;
29 m_PositionVector = other->GetPositionVector()->Clone();
30 m_DirectionVector = other->GetDirectionVector()->Clone();
31 m_RadiusInVoxel = other->GetRadiusInVoxel();
32 m_AbsorptionCoefficient = other->GetAbsorptionCoefficient();
33 m_ScatteringCoefficient = other->GetScatteringCoefficient();
34 m_AnisotopyCoefficient = other->GetAnisotopyCoefficient();
35 m_BifurcationFrequency = other->GetBifurcationFrequency();
36 m_DoPartialVolume = other->GetDoPartialVolume();
41 m_PositionVector =
nullptr;
42 m_DirectionVector =
nullptr;
45 bool mitk::pa::Equal(
const VesselProperties::Pointer leftHandSide,
const VesselProperties::Pointer rightHandSide,
48 MITK_INFO(verbose) <<
"=== mitk::pa::VesselProperties Equal ===";
50 if (rightHandSide.IsNull() || leftHandSide.IsNull())
52 MITK_INFO(verbose) <<
"Cannot compare nullpointers";
56 if (leftHandSide->GetAbsorptionCoefficient() - rightHandSide->GetAbsorptionCoefficient() >
eps)
58 MITK_INFO(verbose) <<
"Not the same AbsorptionCoefficient.";
62 if (leftHandSide->GetAnisotopyCoefficient() - rightHandSide->GetAnisotopyCoefficient() >
eps)
64 MITK_INFO(verbose) <<
"Not the same AnisotropyCoefficient.";
68 if (leftHandSide->GetBifurcationFrequency() - rightHandSide->GetBifurcationFrequency() >
eps)
70 MITK_INFO(verbose) <<
"Not the same BifurcationFrequency.";
74 if (leftHandSide->GetRadiusInVoxel() - rightHandSide->GetRadiusInVoxel() >
eps)
76 MITK_INFO(verbose) <<
"Not the same RadiusInVoxel.";
80 if (leftHandSide->GetScatteringCoefficient() - rightHandSide->GetScatteringCoefficient() >
eps)
82 MITK_INFO(verbose) <<
"Not the same ScatteringCoefficient.";
86 if (!
Equal(leftHandSide->GetPositionVector(), rightHandSide->GetPositionVector(),
eps,
verbose))
88 MITK_INFO(verbose) <<
"PositionVector not equal";
92 if (!
Equal(leftHandSide->GetDirectionVector(), rightHandSide->GetDirectionVector(),
eps,
verbose))
94 MITK_INFO(verbose) <<
"DirectionVector not equal";
98 if (!(leftHandSide->GetDoPartialVolume() == rightHandSide->GetDoPartialVolume()))
100 MITK_INFO(verbose) <<
"GetDoPartialVolume not equal";
~VesselProperties() override
MITKPHOTOACOUSTICSLIB_EXPORT bool Equal(const MonteCarloThreadHandler::Pointer leftHandSide, const MonteCarloThreadHandler::Pointer rightHandSide, double eps, bool verbose)
Equal A function comparing two thread handlers for beeing equal.
MITKCORE_EXPORT const ScalarType eps