Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
6e999b28
Commit
6e999b28
authored
Sep 23, 2009
by
Emmanuel Christophe
Browse files
COMP: change accessors of BinaryImageToLabelMapFilter now that we are using the Code/Review version
parent
7b81b2ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Examples/OBIA/ImageToLabelToImage.cxx
View file @
6e999b28
...
...
@@ -57,22 +57,22 @@ int main(int argc, char * argv[])
const
int
dim
=
2
;
typedef
unsigned
short
PixelType
;
typedef
otb
::
Image
<
PixelType
,
dim
>
ImageType
;
typedef
itk
::
LabelObject
<
PixelType
,
dim
>
LabelObjectType
;
typedef
itk
::
LabelMap
<
LabelObjectType
>
LabelMapType
;
typedef
itk
::
ImageFileReader
<
ImageType
>
ReaderType
;
ReaderType
::
Pointer
reader
=
ReaderType
::
New
();
reader
->
SetFileName
(
argv
[
1
]
);
typedef
itk
::
BinaryImageToLabelMapFilter
<
ImageType
,
LabelMapType
>
I2LType
;
I2LType
::
Pointer
i2l
=
I2LType
::
New
();
i2l
->
SetInput
(
reader
->
GetOutput
()
);
i2l
->
SetFullyConnected
(
atoi
(
argv
[
5
])
);
i2l
->
SetForegroundValue
(
atoi
(
argv
[
6
])
);
i2l
->
SetBackgroundValue
(
atoi
(
argv
[
7
])
);
i2l
->
Set
Input
ForegroundValue
(
atoi
(
argv
[
6
])
);
i2l
->
Set
Output
BackgroundValue
(
atoi
(
argv
[
7
])
);
typedef
itk
::
LabelMapToLabelImageFilter
<
LabelMapType
,
ImageType
>
L2IType
;
L2IType
::
Pointer
l2i
=
L2IType
::
New
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment