Modules
IO
include
mirtk
PNGImageWriter.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_PNGImageWriter_H
21
#define MIRTK_PNGImageWriter_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 PNG file filter.
33
*
34
* This is a class which takes an image as input and produces an image file
35
* in PNG file format. Note that PNG file formats support only 2D images!!!
36
*/
37
class
PNGImageWriter
:
public
ImageWriter
38
{
39
mirtkObjectMacro(
PNGImageWriter
);
40
41
protected
:
42
43
/// Initialize filter
44
virtual
void
Initialize
();
45
46
public
:
47
48
/// List of file name extensions
49
static
Array<string>
Extensions
();
50
51
/// Write entire image
52
virtual
void
Run
();
53
54
};
55
56
57
}
// namespace mirtk
58
59
#endif // MIRTK_PNGImageWriter_H
mirtk::PNGImageWriter
Definition:
PNGImageWriter.h:37
mirtk::ImageWriter
Definition:
ImageWriter.h:37
mirtk
Definition:
IOConfig.h:41
mirtk::PNGImageWriter::Run
virtual void Run()
Write entire image.
mirtk::PNGImageWriter::Initialize
virtual void Initialize()
Initialize filter.
mirtk::PNGImageWriter::Extensions
static Array< string > Extensions()
List of file name extensions.