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
9e5c28b8
Commit
9e5c28b8
authored
Apr 30, 2014
by
Alexandre Benoit
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16 from kirill-kornyakov/enable-travis
Enable travis and other fixes
parents
881b115e
9ec2805e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
.travis.yml
.travis.yml
+14
-0
transientareassegmentationmodule.cpp
modules/bioinspired/src/transientareassegmentationmodule.cpp
+2
-0
PFSolver.hpp
modules/tracking/src/PFSolver.hpp
+7
-2
No files found.
.travis.yml
0 → 100644
View file @
9e5c28b8
language
:
cpp
compiler
:
-
gcc
-
clang
before_script
:
-
cd ../
-
git clone https://github.com/Itseez/opencv.git
-
mkdir build-opencv
-
cd build-opencv
-
cmake -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ../opencv
script
:
-
make -j5
notifications
:
email
:
false
modules/bioinspired/src/transientareassegmentationmodule.cpp
View file @
9e5c28b8
...
@@ -77,6 +77,8 @@
...
@@ -77,6 +77,8 @@
#include "precomp.hpp"
#include "precomp.hpp"
#include "basicretinafilter.hpp"
#include "basicretinafilter.hpp"
#include <sstream>
#define _SEGMENTATIONDEBUG //define SEGMENTATIONDEBUG to access more data/methods
#define _SEGMENTATIONDEBUG //define SEGMENTATIONDEBUG to access more data/methods
namespace
cv
namespace
cv
...
...
modules/tracking/src/PFSolver.hpp
View file @
9e5c28b8
...
@@ -103,7 +103,10 @@ namespace cv{
...
@@ -103,7 +103,10 @@ namespace cv{
_particles
.
row
(
i
).
copyTo
(
new_particles
.
row
(
num_particles
));
_particles
.
row
(
i
).
copyTo
(
new_particles
.
row
(
num_particles
));
}
}
}
}
Mat_
<
double
>
maxrow
=
_particles
.
row
(
std
::
max_element
(
_logweight
.
begin
(),
_logweight
.
end
())
-
_logweight
.
begin
());
//Mat_<double> maxrow=_particles.row(std::max_element(_logweight.begin(),_logweight.end())-_logweight.begin());
double
max_element
;
minMaxLoc
(
_logweight
,
0
,
&
max_element
);
Mat_
<
double
>
maxrow
=
_particles
.
row
(
max_element
);
for
(;
num_particles
<
new_particles
.
rows
;
num_particles
++
){
for
(;
num_particles
<
new_particles
.
rows
;
num_particles
++
){
maxrow
.
copyTo
(
new_particles
.
row
(
num_particles
));
maxrow
.
copyTo
(
new_particles
.
row
(
num_particles
));
}
}
...
@@ -208,7 +211,9 @@ namespace cv{
...
@@ -208,7 +211,9 @@ namespace cv{
}
}
void
PFSolver
::
normalize
(
Mat_
<
double
>&
row
){
void
PFSolver
::
normalize
(
Mat_
<
double
>&
row
){
double
logsum
=
0.0
;
double
logsum
=
0.0
;
double
max
=*
(
std
::
max_element
(
row
.
begin
(),
row
.
end
()));
//double max=*(std::max_element(row.begin(),row.end()));
double
max
;
minMaxLoc
(
row
,
0
,
&
max
);
row
-=
max
;
row
-=
max
;
for
(
int
i
=
0
;
i
<
row
.
cols
;
i
++
){
for
(
int
i
=
0
;
i
<
row
.
cols
;
i
++
){
logsum
+=
exp
(
row
(
0
,
i
));
logsum
+=
exp
(
row
(
0
,
i
));
...
...
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