Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
2bf68f2c
Commit
2bf68f2c
authored
Mar 17, 2013
by
Davis King
Browse files
Removed unneeded declarations of the constant pi
parent
6a8dfdaa
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
4 deletions
+0
-4
dlib/image_keypoint/fine_hog_image.h
dlib/image_keypoint/fine_hog_image.h
+0
-1
dlib/image_keypoint/hog.h
dlib/image_keypoint/hog.h
+0
-1
dlib/image_keypoint/surf.h
dlib/image_keypoint/surf.h
+0
-1
dlib/test/geometry.cpp
dlib/test/geometry.cpp
+0
-1
No files found.
dlib/image_keypoint/fine_hog_image.h
View file @
2bf68f2c
...
@@ -240,7 +240,6 @@ namespace dlib
...
@@ -240,7 +240,6 @@ namespace dlib
hist_counts
.
set_size
(
img
.
nr
()
-
2
,
img
.
nc
()
-
2
);
hist_counts
.
set_size
(
img
.
nr
()
-
2
,
img
.
nc
()
-
2
);
const
double
pi
=
3.1415926535898
;
for
(
long
r
=
0
;
r
<
hist_counts
.
nr
();
++
r
)
for
(
long
r
=
0
;
r
<
hist_counts
.
nr
();
++
r
)
...
...
dlib/image_keypoint/hog.h
View file @
2bf68f2c
...
@@ -282,7 +282,6 @@ namespace dlib
...
@@ -282,7 +282,6 @@ namespace dlib
}
}
}
}
const
double
pi
=
3.1415926535898
;
// loop over all the histogram cells and fill them out
// loop over all the histogram cells and fill them out
for
(
long
rh
=
1
;
rh
<
hist_cells
.
nr
()
-
1
;
++
rh
)
for
(
long
rh
=
1
;
rh
<
hist_cells
.
nr
()
-
1
;
++
rh
)
...
...
dlib/image_keypoint/surf.h
View file @
2bf68f2c
...
@@ -88,7 +88,6 @@ namespace dlib
...
@@ -88,7 +88,6 @@ namespace dlib
<<
"
\n\t
scale: "
<<
scale
<<
"
\n\t
scale: "
<<
scale
);
);
const
double
pi
=
3.1415926535898
;
std
::
vector
<
double
>
ang
;
std
::
vector
<
double
>
ang
;
std
::
vector
<
dlib
::
vector
<
double
,
2
>
>
samples
;
std
::
vector
<
dlib
::
vector
<
double
,
2
>
>
samples
;
...
...
dlib/test/geometry.cpp
View file @
2bf68f2c
...
@@ -273,7 +273,6 @@ namespace
...
@@ -273,7 +273,6 @@ namespace
}
}
{
{
const
double
pi
=
3.1415926535898
;
point
p1
,
center
;
point
p1
,
center
;
center
=
point
(
3
,
4
);
center
=
point
(
3
,
4
);
...
...
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