Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
478abf4f
Commit
478abf4f
authored
15 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
DOC: line formating for software guide
parent
a991e359
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
+2
-1
2 additions, 1 deletion
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
Examples/OBIA/ShapeAttributeComputation.cxx
+3
-2
3 additions, 2 deletions
Examples/OBIA/ShapeAttributeComputation.cxx
with
5 additions
and
3 deletions
Examples/OBIA/RadiometricAttributesLabelMapFilterExample.cxx
+
2
−
1
View file @
478abf4f
...
@@ -131,7 +131,8 @@ int main(int argc, char * argv[])
...
@@ -131,7 +131,8 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
// Software Guide : BeginCodeSnippet
typedef
otb
::
MeanShiftVectorImageFilter
<
VectorImageType
,
VectorImageType
,
LabeledImageType
>
FilterType
;
typedef
otb
::
MeanShiftVectorImageFilter
<
VectorImageType
,
VectorImageType
,
LabeledImageType
>
FilterType
;
FilterType
::
Pointer
filter
=
FilterType
::
New
();
FilterType
::
Pointer
filter
=
FilterType
::
New
();
filter
->
SetSpatialRadius
(
spatialRadius
);
filter
->
SetSpatialRadius
(
spatialRadius
);
filter
->
SetRangeRadius
(
rangeRadius
);
filter
->
SetRangeRadius
(
rangeRadius
);
...
...
This diff is collapsed.
Click to expand it.
Examples/OBIA/ShapeAttributeComputation.cxx
+
3
−
2
View file @
478abf4f
...
@@ -144,10 +144,11 @@ int main(int argc, char * argv[])
...
@@ -144,10 +144,11 @@ int main(int argc, char * argv[])
LabelMapType
::
Pointer
labelMap
=
shape
->
GetOutput
();
LabelMapType
::
Pointer
labelMap
=
shape
->
GetOutput
();
for
(
unsigned
long
label
=
1
;
label
<=
labelMap
->
GetNumberOfLabelObjects
();
label
++
)
for
(
unsigned
long
label
=
1
;
label
<=
labelMap
->
GetNumberOfLabelObjects
();
label
++
)
{
{
// we don't need a SmartPointer of the label object here, because the reference is kept
in
// we don't need a SmartPointer of the label object here, because the reference is kept
// in the label map.
// in the label map.
const
LabelObjectType
*
labelObject
=
labelMap
->
GetLabelObject
(
label
);
const
LabelObjectType
*
labelObject
=
labelMap
->
GetLabelObject
(
label
);
outfile
<<
label
<<
"
\t
"
<<
labelObject
->
GetPhysicalSize
()
<<
"
\t
"
<<
labelObject
->
GetCentroid
()
<<
std
::
endl
;
outfile
<<
label
<<
"
\t
"
<<
labelObject
->
GetPhysicalSize
()
<<
"
\t
"
<<
labelObject
->
GetCentroid
()
<<
std
::
endl
;
}
}
outfile
.
close
();
outfile
.
close
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment