Commit 7d7002ef authored by xin.wang.waytous's avatar xin.wang.waytous

Deepinfer_PI

parent 8195e925
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
#endif #endif
// #endif // USE_CUDA // #endif // USE_CUDA
#ifndef PI #ifndef DEEPINFER_PI
#define PI 3.1415926 #define DEEPINFER_PI 3.1415926
#endif #endif
namespace waytous{ namespace waytous{
......
...@@ -234,9 +234,9 @@ void TaskDMS::resetCounter(){ ...@@ -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){ void TaskDMS::drawAxis(cv::Mat& img, float& pitch_, float& yaw_, float& roll_, int cx, int cy, int size){
float pitch = pitch_ * PI / 180.; float pitch = pitch_ * DEEPINFER_PI / 180.;
float yaw = -yaw_ * PI / 180.; float yaw = -yaw_ * DEEPINFER_PI / 180.;
float roll = roll_ * PI / 180.; float roll = roll_ * DEEPINFER_PI / 180.;
// X-Axis pointing to right. drawn in red // X-Axis pointing to right. drawn in red
float x1 = size * (std::cos(yaw) * std::cos(roll)) + cx; float x1 = size * (std::cos(yaw) * std::cos(roll)) + cx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment