Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkConstraintCheckerBase.cpp
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#include "
mitkConstraintCheckerBase.h
"
14
15
16
mitk::ConstraintCheckerBase::PenaltyValueType
17
mitk::ConstraintCheckerBase::GetPenaltySum
(
const
ParametersType
¶meters)
const
18
{
19
PenaltyValueType
result = 0.0;
20
PenaltyArrayType
penalties =
GetPenalties
(parameters);
21
22
for
(PenaltyArrayType::iterator penaltyPos = penalties.begin(); penaltyPos != penalties.end(); ++penaltyPos)
23
{
24
result += *penaltyPos;
25
}
26
27
return
result;
28
};
mitk::ConstraintCheckerBase::PenaltyValueType
Superclass::PenaltyValueType PenaltyValueType
Definition:
mitkConstraintCheckerBase.h:40
mitk::ConstraintCheckerInterface::GetPenalties
virtual PenaltyArrayType GetPenalties(const ParametersType ¶meters) const =0
mitk::ConstraintCheckerBase::PenaltyArrayType
Superclass::PenaltyArrayType PenaltyArrayType
Definition:
mitkConstraintCheckerBase.h:41
mitkConstraintCheckerBase.h
mitk::ConstraintCheckerBase::GetPenaltySum
PenaltyValueType GetPenaltySum(const ParametersType ¶meters) const override
Definition:
mitkConstraintCheckerBase.cpp:17
mitk::ConstraintCheckerBase::ParametersType
Superclass::ParametersType ParametersType
Definition:
mitkConstraintCheckerBase.h:43
Source
Modules
ModelFit
src
Functors
mitkConstraintCheckerBase.cpp
Generated on Thu Mar 12 2020 10:23:41 for Medical Imaging Interaction Toolkit by
1.8.13