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
73c03fd1
Commit
73c03fd1
authored
Oct 17, 2016
by
Vladislav Sovrasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add export specifiers in StaticSaliencyFineGrained
parent
a39e3623
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
saliencySpecializedClasses.hpp
...y/include/opencv2/saliency/saliencySpecializedClasses.hpp
+14
-1
staticSaliencyFineGrained.cpp
modules/saliency/src/staticSaliencyFineGrained.cpp
+1
-1
No files found.
modules/saliency/include/opencv2/saliency/saliencySpecializedClasses.hpp
View file @
73c03fd1
...
...
@@ -119,11 +119,24 @@ protected:
This method calculates saliency based on center-surround differences.
High resolution saliency maps are generated in real time by using integral images.
*/
class
CV_EXPORTS
StaticSaliencyFineGrained
:
public
StaticSaliency
class
CV_EXPORTS
_W
StaticSaliencyFineGrained
:
public
StaticSaliency
{
public
:
StaticSaliencyFineGrained
();
CV_WRAP
static
Ptr
<
StaticSaliencyFineGrained
>
create
()
{
return
makePtr
<
StaticSaliencyFineGrained
>
();
}
CV_WRAP
bool
computeSaliency
(
InputArray
image
,
OutputArray
saliencyMap
)
{
if
(
image
.
empty
()
)
return
false
;
return
computeSaliencyImpl
(
image
,
saliencyMap
);
}
virtual
~
StaticSaliencyFineGrained
();
protected
:
...
...
modules/saliency/src/staticSaliencyFineGrained.cpp
View file @
73c03fd1
...
...
@@ -62,7 +62,7 @@ StaticSaliencyFineGrained::~StaticSaliencyFineGrained()
}
bool
StaticSaliencyFineGrained
::
computeSaliencyImpl
(
const
InputArray
image
,
OutputArray
saliencyMap
)
bool
StaticSaliencyFineGrained
::
computeSaliencyImpl
(
InputArray
image
,
OutputArray
saliencyMap
)
{
Mat
dst
(
Size
(
image
.
getMat
().
cols
,
image
.
getMat
().
rows
),
CV_8UC1
);
calcIntensityChannel
(
image
.
getMat
(),
dst
);
...
...
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