Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
deepinfer
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yangxue
deepinfer
Commits
7d7002ef
Commit
7d7002ef
authored
Mar 06, 2023
by
xin.wang.waytous
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deepinfer_PI
parent
8195e925
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
common.h
include/common/common.h
+2
-2
task_dms.cpp
src/tasks/task_dms.cpp
+3
-3
No files found.
include/common/common.h
View file @
7d7002ef
...
...
@@ -29,8 +29,8 @@
#endif
// #endif // USE_CUDA
#ifndef PI
#define PI 3.1415926
#ifndef
DEEPINFER_
PI
#define
DEEPINFER_
PI 3.1415926
#endif
namespace
waytous
{
...
...
src/tasks/task_dms.cpp
View file @
7d7002ef
...
...
@@ -234,9 +234,9 @@ void TaskDMS::resetCounter(){
void
TaskDMS
::
drawAxis
(
cv
::
Mat
&
img
,
float
&
pitch_
,
float
&
yaw_
,
float
&
roll_
,
int
cx
,
int
cy
,
int
size
){
float
pitch
=
pitch_
*
PI
/
180.
;
float
yaw
=
-
yaw_
*
PI
/
180.
;
float
roll
=
roll_
*
PI
/
180.
;
float
pitch
=
pitch_
*
DEEPINFER_
PI
/
180.
;
float
yaw
=
-
yaw_
*
DEEPINFER_
PI
/
180.
;
float
roll
=
roll_
*
DEEPINFER_
PI
/
180.
;
// X-Axis pointing to right. drawn in red
float
x1
=
size
*
(
std
::
cos
(
yaw
)
*
std
::
cos
(
roll
))
+
cx
;
...
...
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