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
d099fbcb
Commit
d099fbcb
authored
Sep 03, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #83 from vpisarev/fix_android_warnings
fixed android warnings
parents
c54ae801
d4d2a6ef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
7 deletions
+5
-7
misc
modules/saliency/doc/misc
+0
-1
CmFile.cpp
modules/saliency/src/BING/CmFile.cpp
+3
-3
kyheader.hpp
modules/saliency/src/BING/kyheader.hpp
+0
-1
objectnessBING.cpp
modules/saliency/src/BING/objectnessBING.cpp
+2
-2
No files found.
misc
@
16789e8d
Subproject commit 16789e8dcad170f502c81ea2b9714a4dd6bff0c1
modules/saliency/src/BING/CmFile.cpp
View file @
d099fbcb
...
...
@@ -52,7 +52,7 @@ bool CmFile::MkDir( std::string &_path )
if
(
_path
.
size
()
==
0
)
return
false
;
static
char
buffer
[
1024
];
strcpy
(
buffer
,
_
S
(
_path
)
);
strcpy
(
buffer
,
_
path
.
c_str
(
)
);
#ifdef _WIN32
for
(
int
i
=
0
;
buffer
[
i
]
!=
0
;
i
++
)
{
...
...
@@ -64,7 +64,7 @@ bool CmFile::MkDir( std::string &_path )
}
}
CreateDirectoryA
(
_
S
(
_path
),
0
);
CreateDirectoryA
(
_
path
.
c_str
(
),
0
);
return
true
;
#else
for
(
int
i
=
0
;
buffer
[
i
]
!=
0
;
i
++
)
...
...
@@ -76,7 +76,7 @@ bool CmFile::MkDir( std::string &_path )
buffer
[
i
]
=
'/'
;
}
}
mkdir
(
_
S
(
_path
),
0
);
mkdir
(
_
path
.
c_str
(
),
0
);
return
true
;
#endif
}
...
...
modules/saliency/src/BING/kyheader.hpp
View file @
d099fbcb
...
...
@@ -100,7 +100,6 @@ enum
CV_FLIP_VERTICAL
=
0
,
CV_FLIP_HORIZONTAL
=
1
};
#define _S(str) ((str).c_str())
#define CHK_IND(p) ((p).x >= 0 && (p).x < _w && (p).y >= 0 && (p).y < _h)
#define CV_Assert_(expr, args) \
{\
...
...
modules/saliency/src/BING/objectnessBING.cpp
View file @
d099fbcb
...
...
@@ -104,7 +104,7 @@ int ObjectnessBING::loadTrainedModel( std::string modelName ) // Return -1, 0,
if
(
!
matRead
(
s1
,
filters1f
)
||
!
matRead
(
sI
,
idx1i
)
)
{
printf
(
"Can't load model: %s or %s
\n
"
,
_S
(
s1
),
_S
(
sI
)
);
printf
(
"Can't load model: %s or %s
\n
"
,
s1
.
c_str
(),
sI
.
c_str
(
)
);
return
0
;
}
...
...
@@ -401,7 +401,7 @@ void ObjectnessBING::getObjBndBoxesForSingleImage( Mat img, ValStructVec<float,
CStr
fName
=
_bbResDir
+
"bb"
;
std
::
vector
<
Vec4i
>
sortedBB
=
finalBoxes
.
getSortedStructVal
();
std
::
ofstream
ofs
;
ofs
.
open
(
_S
(
fName
+
".txt"
),
std
::
ofstream
::
out
);
ofs
.
open
(
(
fName
+
".txt"
).
c_str
(
),
std
::
ofstream
::
out
);
std
::
stringstream
dim
;
dim
<<
sortedBB
.
size
();
ofs
<<
dim
.
str
()
<<
"
\n
"
;
...
...
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