PGMImageWriter.h
1 /*
2  * Medical Image Registration ToolKit (MIRTK)
3  *
4  * Copyright 2008-2015 Imperial College London
5  * Copyright 2008-2015 Daniel Rueckert, Julia Schnabel
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_PGMImageWriter_H
21 #define MIRTK_PGMImageWriter_H
22 
23 #include "mirtk/ImageWriter.h"
24 
25 #include "mirtk/Array.h"
26 
27 
28 namespace mirtk {
29 
30 
31 /**
32  * Class for image to PGM file filter.
33  *
34  * This is a class which takes an image as input and produces an image file
35  * in PGM file format. Note that PGM file formats support only 2D images!!!
36  */
38 {
39  mirtkObjectMacro(PGMImageWriter);
40 
41 public:
42 
43  /// List of file name extensions
44  static Array<string> Extensions();
45 
46  /// Write entire image
47  virtual void Run();
48 
49 protected:
50 
51  /// Initialize filter
52  virtual void Initialize();
53 
54 };
55 
56 
57 } // namespace mirtk
58 
59 #endif // MIRTK_PGMImageWriter_H
virtual void Initialize()
Initialize filter.
virtual void Run()
Write entire image.
Definition: IOConfig.h:41
static Array< string > Extensions()
List of file name extensions.