Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
aaa286dc
Commit
aaa286dc
authored
Mar 21, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hfs: apply CV_OVERRIDE/CV_FINAL
parent
7025ed03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
hfs.cpp
modules/hfs/src/hfs.cpp
+17
-17
No files found.
modules/hfs/src/hfs.cpp
View file @
aaa286dc
...
...
@@ -9,73 +9,73 @@
namespace
cv
{
namespace
hfs
{
class
HfsSegmentImpl
:
public
cv
::
hfs
::
HfsSegment
{
class
HfsSegmentImpl
CV_FINAL
:
public
cv
::
hfs
::
HfsSegment
{
public
:
void
setSegEgbThresholdI
(
float
c
)
void
setSegEgbThresholdI
(
float
c
)
CV_OVERRIDE
{
core
->
hfsSettings
.
egbThresholdI
=
c
;
}
float
getSegEgbThresholdI
()
{
float
getSegEgbThresholdI
()
CV_OVERRIDE
{
return
core
->
hfsSettings
.
egbThresholdI
;
}
void
setMinRegionSizeI
(
int
n
)
void
setMinRegionSizeI
(
int
n
)
CV_OVERRIDE
{
core
->
hfsSettings
.
minRegionSizeI
=
n
;
}
int
getMinRegionSizeI
()
int
getMinRegionSizeI
()
CV_OVERRIDE
{
return
core
->
hfsSettings
.
minRegionSizeI
;
}
void
setSegEgbThresholdII
(
float
c
)
void
setSegEgbThresholdII
(
float
c
)
CV_OVERRIDE
{
core
->
hfsSettings
.
egbThresholdII
=
c
;
}
float
getSegEgbThresholdII
()
{
float
getSegEgbThresholdII
()
CV_OVERRIDE
{
return
core
->
hfsSettings
.
egbThresholdII
;
}
void
setMinRegionSizeII
(
int
n
)
void
setMinRegionSizeII
(
int
n
)
CV_OVERRIDE
{
core
->
hfsSettings
.
minRegionSizeII
=
n
;
}
int
getMinRegionSizeII
()
int
getMinRegionSizeII
()
CV_OVERRIDE
{
return
core
->
hfsSettings
.
minRegionSizeII
;
}
void
setSpatialWeight
(
float
w
)
void
setSpatialWeight
(
float
w
)
CV_OVERRIDE
{
core
->
hfsSettings
.
slicSettings
.
coh_weight
=
w
;
core
->
reconstructEngine
();
}
float
getSpatialWeight
()
float
getSpatialWeight
()
CV_OVERRIDE
{
return
core
->
hfsSettings
.
slicSettings
.
coh_weight
;
}
void
setSlicSpixelSize
(
int
n
)
void
setSlicSpixelSize
(
int
n
)
CV_OVERRIDE
{
core
->
hfsSettings
.
slicSettings
.
spixel_size
=
n
;
core
->
reconstructEngine
();
}
int
getSlicSpixelSize
()
int
getSlicSpixelSize
()
CV_OVERRIDE
{
return
core
->
hfsSettings
.
slicSettings
.
spixel_size
;
}
void
setNumSlicIter
(
int
n
)
void
setNumSlicIter
(
int
n
)
CV_OVERRIDE
{
core
->
hfsSettings
.
slicSettings
.
num_iters
=
n
;
core
->
reconstructEngine
();
}
int
getNumSlicIter
()
int
getNumSlicIter
()
CV_OVERRIDE
{
return
core
->
hfsSettings
.
slicSettings
.
num_iters
;
}
...
...
@@ -90,8 +90,8 @@ public:
spatialWeight
,
spixelSize
,
numIter
));
}
Mat
performSegmentGpu
(
InputArray
src
,
bool
ifDraw
=
true
);
Mat
performSegmentCpu
(
InputArray
src
,
bool
ifDraw
=
true
);
Mat
performSegmentGpu
(
InputArray
src
,
bool
ifDraw
=
true
)
CV_OVERRIDE
;
Mat
performSegmentCpu
(
InputArray
src
,
bool
ifDraw
=
true
)
CV_OVERRIDE
;
private
:
Ptr
<
HfsCore
>
core
;
};
...
...
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