LabelConsistency.h
1 /*
2  * Medical Image Registration ToolKit (MIRTK)
3  *
4  * Copyright 2016 Imperial College London
5  * Copyright 2016 Andreas Schuh
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 
20 #ifndef MIRTK_LabelConsistency_H
21 #define MIRTK_LabelConsistency_H
22 
23 #include "mirtk/HistogramImageSimilarity.h"
24 
25 
26 namespace mirtk {
27 
28 
29 /**
30  * Label consistency image similarity measure
31  */
33 {
34  mirtkEnergyTermMacro(LabelConsistency, EM_LC);
35 
36  // ---------------------------------------------------------------------------
37  // Construction/Destruction
38 public:
39 
40  /// Constructor
41  LabelConsistency(const char * = "");
42 
43  /// Copy constructor
45 
46  /// Assignment operator
48 
49  /// Destructor
51 
52  // ---------------------------------------------------------------------------
53  // Initialization
54 
55  /// Initialize similarity measure once input and parameters have been set
56  virtual void Initialize();
57 
58  // ---------------------------------------------------------------------------
59  // Evaluation
60 protected:
61 
62  /// Evaluate similarity of images
63  virtual double Evaluate();
64 
65 };
66 
67 
68 } // namespace mirtk
69 
70 #endif // MIRTK_LabelConsistency_H
LabelConsistency & operator=(const LabelConsistency &)
Assignment operator.
LabelConsistency(const char *="")
Constructor.
Label consistency.
Definition: EnergyMeasure.h:46
Definition: IOConfig.h:41
virtual double Evaluate()
Evaluate similarity of images.
~LabelConsistency()
Destructor.
virtual void Initialize()
Initialize similarity measure once input and parameters have been set.