Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
9771c3c7
Commit
9771c3c7
authored
Oct 05, 2012
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove Mat copying
parent
0ff8a463
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
softcascade.cpp
modules/objdetect/src/softcascade.cpp
+3
-6
No files found.
modules/objdetect/src/softcascade.cpp
View file @
9771c3c7
...
...
@@ -283,7 +283,7 @@ struct ChannelStorage
// convert to luv
cv
::
Mat
luv
;
cv
::
cvtColor
(
colored
,
luv
,
CV_
RGB
2Luv
);
cv
::
cvtColor
(
colored
,
luv
,
CV_
BGR
2Luv
);
// split to 3 one channel matrix
std
::
vector
<
cv
::
Mat
>
splited
,
luvs
;
...
...
@@ -300,7 +300,7 @@ struct ChannelStorage
// convert to grey
cv
::
Mat
grey
;
cv
::
cvtColor
(
colored
,
grey
,
CV_
RGB
2GRAY
);
cv
::
cvtColor
(
colored
,
grey
,
CV_
BGR
2GRAY
);
// get derivative
cv
::
Mat
df_dx
,
df_dy
,
mag
,
angle
;
...
...
@@ -371,7 +371,7 @@ struct ChannelStorage
float
get
(
const
int
x
,
const
int
y
,
const
int
channel
,
const
cv
::
Rect
&
area
)
const
{
CV_Assert
(
channel
<
HOG_LUV_BINS
);
const
cv
::
Mat
m
=
hog
[
channel
];
const
cv
::
Mat
&
m
=
hog
[
channel
];
dprintf
(
"feature box %d %d %d %d "
,
area
.
x
,
area
.
y
,
area
.
width
,
area
.
height
);
dprintf
(
"get for channel %d
\n
"
,
channel
);
...
...
@@ -731,9 +731,6 @@ void cv::SoftCascade::detectMultiScale(const Mat& image, const std::vector<cv::R
const
Filds
&
fld
=
*
filds
;
cv
::
Mat
image1
;
cv
::
cvtColor
(
image
,
image1
,
CV_BGR2RGB
);
// create integrals
ChannelStorage
storage
(
image
,
fld
.
shrinkage
);
...
...
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