IntensityCorrelationRatioYX.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_IntensityCorrelationRatioYX_H
21 #define MIRTK_IntensityCorrelationRatioYX_H
22 
23 #include "mirtk/HistogramImageSimilarity.h"
24 
25 
26 namespace mirtk {
27 
28 
29 /**
30  * Correlation ratio of target (X) and source (Y) image intensities
31  */
33 {
34  mirtkEnergyTermMacro(IntensityCorrelationRatioYX, EM_CR_YX);
35 
36  // ---------------------------------------------------------------------------
37  // Construction/Destruction
38 public:
39 
40  /// Constructor
41  IntensityCorrelationRatioYX(const char * = "");
42 
43  /// Copy constructor
45 
46  /// Assignment operator
48 
49  /// Destructor
51 
52  // ---------------------------------------------------------------------------
53  // Evaluation
54 protected:
55 
56  /// Evaluate similarity of images
57  virtual double Evaluate();
58 
59 };
60 
61 
62 } // namespace mirtk
63 
64 #endif // MIRTK_IntensityCorrelationRatioYX_H
virtual double Evaluate()
Evaluate similarity of images.
Correlation ratio.
Definition: EnergyMeasure.h:45
Definition: IOConfig.h:41
IntensityCorrelationRatioYX(const char *="")
Constructor.
IntensityCorrelationRatioYX & operator=(const IntensityCorrelationRatioYX &)
Assignment operator.