ITK
4.13.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Core
TestKernel
include
itkTestDriverIncludeRequiredIOFactories.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 itkTestDriverIncludeRequiredIOFactories_h
19
#define itkTestDriverIncludeRequiredIOFactories_h
20
21
#include "
itkGDCMImageIOFactory.h
"
22
#include "
itkMetaImageIOFactory.h
"
23
#include "
itkJPEGImageIOFactory.h
"
24
#include "
itkPNGImageIOFactory.h
"
25
#include "
itkTIFFImageIOFactory.h
"
26
#include "
itkBMPImageIOFactory.h
"
27
#include "
itkVTKImageIOFactory.h
"
28
#include "
itkNrrdImageIOFactory.h
"
29
#include "
itkGiplImageIOFactory.h
"
30
#include "
itkNiftiImageIOFactory.h
"
31
#include "
itkTestDriverInclude.h
"
32
#include "
itkObjectFactoryBase.h
"
33
34
#ifdef __EMSCRIPTEN__
35
#include <emscripten.h>
36
#endif
37
38
void
39
RegisterRequiredFactories
()
40
{
41
itk::ObjectFactoryBase::RegisterFactory
(
itk::MetaImageIOFactory::New
() );
42
itk::ObjectFactoryBase::RegisterFactory
(
itk::GDCMImageIOFactory::New
() );
43
itk::ObjectFactoryBase::RegisterFactory
(
itk::JPEGImageIOFactory::New
() );
44
itk::ObjectFactoryBase::RegisterFactory
(
itk::VTKImageIOFactory::New
() );
45
itk::ObjectFactoryBase::RegisterFactory
(
itk::PNGImageIOFactory::New
() );
46
itk::ObjectFactoryBase::RegisterFactory
(
itk::TIFFImageIOFactory::New
() );
47
itk::ObjectFactoryBase::RegisterFactory
(
itk::BMPImageIOFactory::New
() );
48
itk::ObjectFactoryBase::RegisterFactory
(
itk::NrrdImageIOFactory::New
() );
49
itk::ObjectFactoryBase::RegisterFactory
(
itk::GiplImageIOFactory::New
() );
50
itk::ObjectFactoryBase::RegisterFactory
(
itk::NiftiImageIOFactory::New
() );
51
}
52
53
void
54
ProcessArgumentsAndRegisterRequiredFactories
(
int
*ac,
ArgumentStringType
*av)
55
{
56
try
57
{
58
RegisterRequiredFactories
();
59
}
60
catch
(
itk::ExceptionObject
& error )
61
{
62
std::cerr <<
"Error during registration of required factories: "
<< error << std::endl;
63
}
64
ProcessArguments
( ac, av );
65
}
66
67
#endif
itkGiplImageIOFactory.h
itkVTKImageIOFactory.h
itk::GiplImageIOFactory::New
static Pointer New()
ProcessArgumentsAndRegisterRequiredFactories
void ProcessArgumentsAndRegisterRequiredFactories(int *ac, ArgumentStringType *av)
Definition:
itkTestDriverIncludeRequiredIOFactories.h:54
itkPNGImageIOFactory.h
itkGDCMImageIOFactory.h
ArgumentStringType
char ** ArgumentStringType
Definition:
itkTestDriverInclude.h:102
itkBMPImageIOFactory.h
itk::BMPImageIOFactory::New
static Pointer New()
itk::VTKImageIOFactory::New
static Pointer New()
RegisterRequiredFactories
void RegisterRequiredFactories()
Definition:
itkTestDriverIncludeRequiredIOFactories.h:39
itk::NiftiImageIOFactory::New
static Pointer New()
itk::ExceptionObject
Standard exception handling object.
Definition:
itkExceptionObject.h:51
itk::GDCMImageIOFactory::New
static Pointer New()
itkTestDriverInclude.h
itkObjectFactoryBase.h
itk::TIFFImageIOFactory::New
static Pointer New()
itkNiftiImageIOFactory.h
itkNrrdImageIOFactory.h
itk::PNGImageIOFactory::New
static Pointer New()
itk::ObjectFactoryBase::RegisterFactory
static bool RegisterFactory(ObjectFactoryBase *, InsertionPositionType where=INSERT_AT_BACK, vcl_size_t position=0)
itkMetaImageIOFactory.h
ProcessArguments
int ProcessArguments(int *ac, ArgumentStringType *av, ProcessedOutputType *processedOutput=nullptr)
Definition:
itkTestDriverInclude.h:210
itkTIFFImageIOFactory.h
itkJPEGImageIOFactory.h
itk::JPEGImageIOFactory::New
static Pointer New()
itk::NrrdImageIOFactory::New
static Pointer New()
itk::MetaImageIOFactory::New
static Pointer New()
Generated on Tue Dec 19 2017 04:58:52 for ITK by
1.8.5