ITK
4.6.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
void
35
RegisterRequiredFactories
()
36
{
37
itk::ObjectFactoryBase::RegisterFactory
(
itk::MetaImageIOFactory::New
() );
38
itk::ObjectFactoryBase::RegisterFactory
(
itk::GDCMImageIOFactory::New
() );
39
itk::ObjectFactoryBase::RegisterFactory
(
itk::JPEGImageIOFactory::New
() );
40
itk::ObjectFactoryBase::RegisterFactory
(
itk::VTKImageIOFactory::New
() );
41
itk::ObjectFactoryBase::RegisterFactory
(
itk::PNGImageIOFactory::New
() );
42
itk::ObjectFactoryBase::RegisterFactory
(
itk::TIFFImageIOFactory::New
() );
43
itk::ObjectFactoryBase::RegisterFactory
(
itk::BMPImageIOFactory::New
() );
44
itk::ObjectFactoryBase::RegisterFactory
(
itk::NrrdImageIOFactory::New
() );
45
itk::ObjectFactoryBase::RegisterFactory
(
itk::GiplImageIOFactory::New
() );
46
itk::ObjectFactoryBase::RegisterFactory
(
itk::NiftiImageIOFactory::New
() );
47
}
48
49
void
50
ProcessArgumentsAndRegisterRequiredFactories
(
int
*ac,
ArgumentStringType
*av)
51
{
52
try
53
{
54
RegisterRequiredFactories
();
55
}
56
catch
(
itk::ExceptionObject
& error )
57
{
58
std::cerr <<
"Error during registration of required factories: "
<< error << std::endl;
59
}
60
ProcessArguments
( ac, av );
61
}
62
63
#endif
itkGiplImageIOFactory.h
itkVTKImageIOFactory.h
itk::VTKImageIOFactory::New
static Pointer New(void)
ProcessArgumentsAndRegisterRequiredFactories
void ProcessArgumentsAndRegisterRequiredFactories(int *ac, ArgumentStringType *av)
Definition:
itkTestDriverIncludeRequiredIOFactories.h:50
itk::BMPImageIOFactory::New
static Pointer New(void)
itk::MetaImageIOFactory::New
static Pointer New(void)
itkPNGImageIOFactory.h
itk::TIFFImageIOFactory::New
static Pointer New(void)
ProcessArguments
int ProcessArguments(int *ac, ArgumentStringType *av, ProcessedOutputType *processedOutput=ITK_NULLPTR)
Definition:
itkTestDriverInclude.h:196
itk::NrrdImageIOFactory::New
static Pointer New(void)
itkGDCMImageIOFactory.h
ArgumentStringType
char ** ArgumentStringType
Definition:
itkTestDriverInclude.h:96
itk::GDCMImageIOFactory::New
static Pointer New(void)
itkBMPImageIOFactory.h
itk::GiplImageIOFactory::New
static Pointer New(void)
RegisterRequiredFactories
void RegisterRequiredFactories()
Definition:
itkTestDriverIncludeRequiredIOFactories.h:35
itk::ExceptionObject
Standard exception handling object.
Definition:
itkExceptionObject.h:51
itkTestDriverInclude.h
itkObjectFactoryBase.h
itkNiftiImageIOFactory.h
itk::PNGImageIOFactory::New
static Pointer New(void)
itkNrrdImageIOFactory.h
itk::ObjectFactoryBase::RegisterFactory
static bool RegisterFactory(ObjectFactoryBase *, InsertionPositionType where=INSERT_AT_BACK, vcl_size_t position=0)
itk::JPEGImageIOFactory::New
static Pointer New(void)
itkMetaImageIOFactory.h
itkTIFFImageIOFactory.h
itkJPEGImageIOFactory.h
itk::NiftiImageIOFactory::New
static Pointer New(void)
Generated on Mon Jul 21 2014 01:11:57 for ITK by
1.8.5