Shapeworks Studio  2.1
Shape analysis software suite
itkPSMEntropyMixedEffectsModelFilter.h
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkPSMEntropyMixedEffectsModelFilter_h
19 #define __itkPSMEntropyMixedEffectsModelFilter_h
20 
21 #include "itkPSMEntropyModelFilter.h"
22 #include "itkPSMMixedEffectsShapeMatrixAttribute.h"
23 
24 namespace itk
25 {
26 
39 template <class TImage, class TShapeMatrix = PSMMixedEffectsShapeMatrixAttribute<double, TImage::ImageDimension> >
41  : public PSMEntropyModelFilter<TImage,TShapeMatrix>
42 {
43  public:
47  typedef SmartPointer<Self> Pointer;
48  typedef SmartPointer<const Self> ConstPointer;
49 
51  itkStaticConstMacro(Dimension, unsigned int, TImage::ImageDimension);
52 
55 
57  typedef TShapeMatrix ShapeMatrixType;
58 
60  itkNewMacro(Self);
61 
64 
66  typedef typename Superclass::ImageType ImageType;
67 
69  typedef typename Superclass::PointType PointType;
70 
73 
75  void SetVariables(const std::vector<double> &v)
76  {
77  this->GetShapeMatrix()->SetExplanatory(v);
78  }
79  const std::vector<double> &GetVariables() const
80  {
81  return this->GetShapeMatrix()->GetExplanatory();
82  }
83 
85  void SetTimePointsPerIndividual(const vnl_vector<int> &v)
86  {
87  this->GetShapeMatrix()->SetTimePointsPerIndividual(v);
88  }
89  const vnl_vector<int> &GetTimePointsPerIndividual() const
90  {
91  return this->GetShapeMatrix()->GetTimePointsPerIndividual();
92  }
93 
95  void SetNumIndividuals(int n)
96  {
97  this->GetShapeMatrix()->SetNumIndividuals(n);
98  }
99  int GetNumIndividuals()
100  {
101  return this->GetShapeMatrix()->GetNumIndividuals();
102  }
103 
104  protected:
107 
108  void PrintSelf(std::ostream& os, Indent indent) const
109  {
110  Superclass::PrintSelf(os, indent);
111  }
112 
113 private:
114  PSMEntropyMixedEffectsModelFilter(const Self&); //purposely not implemented
115  void operator=(const Self&); //purposely not implemented
116 };
117 
118 } // end namespace itk
119 
120 #endif
This class decorates the base PSMEntropyModelFilter class with some additional methods for setting ex...
A facade class that manages interactions with a particle system.
This the most basic of all PSM model optimization filters. This filter assembles all of the necessary...