Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
208
Issues
208
List
Boards
Labels
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
32acc6d6
Commit
32acc6d6
authored
Sep 13, 2018
by
Cédric Traizet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DOC : updated doc for methods, removed useless UpdateOutputInformation()
parent
b8b0d491
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
Modules/Segmentation/Conversion/include/otbLabelImageSmallRegionMergingFilter.h
...onversion/include/otbLabelImageSmallRegionMergingFilter.h
+6
-4
Modules/Segmentation/Conversion/include/otbLabelImageSmallRegionMergingFilter.hxx
...version/include/otbLabelImageSmallRegionMergingFilter.hxx
+0
-8
No files found.
Modules/Segmentation/Conversion/include/otbLabelImageSmallRegionMergingFilter.h
View file @
32acc6d6
...
...
@@ -80,7 +80,7 @@ public:
typedef
std
::
vector
<
double
>
LabelPopulationType
;
typedef
std
::
vector
<
InputLabelType
>
LUTType
;
/** Set/Get size of
polygon
to be merged */
/** Set/Get size of
segments
to be merged */
itkGetMacro
(
Size
,
unsigned
int
);
itkSetMacro
(
Size
,
unsigned
int
);
...
...
@@ -124,15 +124,16 @@ public:
virtual
void
Synthetize
(
void
);
protected:
/** The input requested region should be padded by a radius of 1 to use the neigbourhood iterator*/
void
GenerateInputRequestedRegion
();
void
GenerateOutputInformation
(
void
)
override
;
/** Threaded Generate Data : find the neighbours of each segments of size m_Size for each tile and store them in
* an accumulator */
void
ThreadedGenerateData
(
const
RegionType
&
outputRegionForThread
,
itk
::
ThreadIdType
threadId
)
override
;
// Use
m_LUT recur
ively to find the label corresponding to the input label
// Use
the LUT recurs
ively to find the label corresponding to the input label
InputLabelType
FindCorrespondingLabel
(
InputLabelType
label
);
/** Constructor */
...
...
@@ -148,6 +149,7 @@ private:
PersistentLabelImageSmallRegionMergingFilter
(
const
Self
&
)
=
delete
;
void
operator
=
(
const
Self
&
)
=
delete
;
/** Size of the segments to be merged */
unsigned
int
m_Size
;
/** Vector containing at position i the population of the segment labelled i */
...
...
Modules/Segmentation/Conversion/include/otbLabelImageSmallRegionMergingFilter.hxx
View file @
32acc6d6
...
...
@@ -180,14 +180,6 @@ PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >
}
template
<
class
TInputLabelImage
>
void
PersistentLabelImageSmallRegionMergingFilter
<
TInputLabelImage
>
::
GenerateOutputInformation
()
{
Superclass
::
GenerateOutputInformation
();
}
template
<
class
TInputLabelImage
>
void
PersistentLabelImageSmallRegionMergingFilter
<
TInputLabelImage
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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