Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarianoJT88 committed Jan 15, 2015
1 parent 389e51f commit b8ea9ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions scene_flow_impair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ void PD_flow_opencv::showAndSaveResults()
for (unsigned int v=0; v<rows; v++)
for (unsigned int u=0; u<cols; u++)
{
sf_image.at<cv::Vec3b>(v,u)[0] = 255*abs(dxp[v + u*rows])/maxmodx; //Blue
sf_image.at<cv::Vec3b>(v,u)[1] = 255*abs(dyp[v + u*rows])/maxmody; //Green
sf_image.at<cv::Vec3b>(v,u)[2] = 255*abs(dzp[v + u*rows])/maxmodz; //Red
sf_image.at<cv::Vec3b>(v,u)[0] = 255.f*abs(dxp[v + u*rows])/maxmodx; //Blue
sf_image.at<cv::Vec3b>(v,u)[1] = 255.f*abs(dyp[v + u*rows])/maxmody; //Green
sf_image.at<cv::Vec3b>(v,u)[2] = 255.f*abs(dzp[v + u*rows])/maxmodz; //Red
}

//Show the scene flow as an RGB image
Expand Down
4 changes: 2 additions & 2 deletions scene_flow_impair.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include "legend_pdflow.xpm"
#include <ostream>

#define M_PI 3.14159265
#define M_LOG2E 1.44269504088896340736 //log2(e)
#define M_PI 3.14159265f
#define M_LOG2E 1.44269504088896340736f //log2(e)

inline float log2(const float x){
return log(x) * M_LOG2E;
Expand Down
2 changes: 1 addition & 1 deletion scene_flow_visualization.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "pdflow_cudalib.h"
#include "legend_pdflow.xpm"

#define M_LOG2E 1.44269504088896340736 //log2(e)
//#define M_LOG2E 1.44269504088896340736f //log2(e)

inline float log2(const float x){
return log(x) * M_LOG2E;
Expand Down

0 comments on commit b8ea9ce

Please sign in to comment.