Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Code
SpatialReasoning
otbImageListToRCC8GraphFilter.txx
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: ORFEO Toolbox
4
Language: C++
5
Date: $Date$
6
Version: $Revision$
7
8
9
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10
See OTBCopyright.txt for details.
11
12
13
This software is distributed WITHOUT ANY WARRANTY; without even
14
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15
PURPOSE. See the above copyright notices for more information.
16
17
=========================================================================*/
18
#ifndef __otbImageListToRCC8GraphFilter_txx
19
#define __otbImageListToRCC8GraphFilter_txx
20
21
#include "
otbImageListToRCC8GraphFilter.h
"
22
23
namespace
otb
24
{
28
template
<
class
TInputImage,
class
TOutputGraph>
29
ImageListToRCC8GraphFilter<TInputImage, TOutputGraph>
30
::ImageListToRCC8GraphFilter
()
31
{
32
this->SetNumberOfRequiredInputs(1);
33
}
38
template
<
class
TInputImage,
class
TOutputGraph>
39
void
40
ImageListToRCC8GraphFilter<TInputImage, TOutputGraph>
41
::SetInput
(
const
InputImageListType
*imageList)
42
{
43
// A single input image
44
this->
itk::ProcessObject::SetNthInput
(0, const_cast<InputImageListType*>(imageList));
45
}
50
template
<
class
TInputImage,
class
TOutputGraph>
51
typename
ImageListToRCC8GraphFilter<TInputImage, TOutputGraph>::InputImageListType
*
52
ImageListToRCC8GraphFilter<TInputImage, TOutputGraph>
53
::GetInput
(
void
)
54
{
55
// If there is no input
56
if
(this->GetNumberOfInputs() < 1)
57
{
58
// exit
59
return
0;
60
}
61
// else return the first input
62
return
static_cast<
InputImageListType
*
>
63
(this->
itk::ProcessObject::GetInput
(0));
64
}
68
template
<
class
TInputImage,
class
TOutputGraph>
69
void
70
ImageListToRCC8GraphFilter<TInputImage, TOutputGraph>
71
::PrintSelf
(std::ostream& os,
itk::Indent
indent)
const
72
{
73
Superclass::PrintSelf(os, indent);
74
}
75
}
// End namespace otb
76
#endif
Generated at Sun May 19 2013 00:28:00 for
Orfeo Toolbox
with
doxygen 1.8.3.1