ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkParametricImageSource.h
Go to the documentation of this file.
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 itkParametricImageSource_h
19 #define itkParametricImageSource_h
20 
21 #include "itkGenerateImageSource.h"
22 
23 #include "itkArray.h"
24 
25 namespace itk
26 {
27 
43 template <typename TOutputImage>
45  : public GenerateImageSource< TOutputImage >
46 {
47 public:
53 
56 
58  typedef TOutputImage OutputImageType;
59  typedef typename OutputImageType::Pointer OutputImagePointer;
60  typedef typename OutputImageType::PixelType OutputImagePixelType;
61 
62  typedef double ParametersValueType;
64 
66  itkStaticConstMacro(OutputImageDimension,
67  unsigned int,
68  TOutputImage::ImageDimension);
69 
72 
77  virtual void SetParameters( const ParametersType & parameters ) = 0;
79 
81  virtual ParametersType GetParameters() const = 0;
82 
84  virtual unsigned int GetNumberOfParameters() const = 0;
85 
86 protected:
89  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
90 
91 private:
92  ParametricImageSource(const Self&) ITK_DELETE_FUNCTION;
93  void operator=(const Self&) ITK_DELETE_FUNCTION;
94 
95 };
96 } // end namespace itk
97 
98 
99 #ifndef ITK_MANUAL_INSTANTIATION
100 #include "itkParametricImageSource.hxx"
101 #endif
102 
103 #endif
Array class with size defined at construction time.
Definition: itkArray.h:50
virtual unsigned int GetNumberOfParameters() const =0
OutputImageType::Pointer OutputImagePointer
virtual ParametersType GetParameters() const =0
SmartPointer< const Self > ConstPointer
GenerateImageSource< TOutputImage > Superclass
OutputImageType::PixelType OutputImagePixelType
virtual void SetParameters(const ParametersType &parameters)=0
Array< ParametersValueType > ParametersType
a Base class for image sources which need to have image size, and other meta-data set...
Base class for all parametric image sources.
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.
Definition: itkIndent.h:49
static const unsigned int OutputImageDimension