Commit f8985bb7 authored by yao's avatar yao

fix warnings on Linux

parent 3f81a152
...@@ -72,7 +72,7 @@ namespace stereoBM ...@@ -72,7 +72,7 @@ namespace stereoBM
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
//////////////////////////prefilter_xsbel//////////////////////////////// //////////////////////////prefilter_xsbel////////////////////////////////
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
void prefilter_xsobel(const oclMat &input, oclMat &output, int prefilterCap) static void prefilter_xsobel(const oclMat &input, oclMat &output, int prefilterCap)
{ {
Context *clCxt = input.clCxt; Context *clCxt = input.clCxt;
...@@ -110,7 +110,7 @@ static inline int divUp(int total, int grain) ...@@ -110,7 +110,7 @@ static inline int divUp(int total, int grain)
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
///////////////////////////////stereoBM_GPU//////////////////////////////// ///////////////////////////////stereoBM_GPU////////////////////////////////
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
void stereo_bm(const oclMat &left, const oclMat &right, oclMat &disp, static void stereo_bm(const oclMat &left, const oclMat &right, oclMat &disp,
int maxdisp, int winSize, oclMat &minSSD_buf) int maxdisp, int winSize, oclMat &minSSD_buf)
{ {
int winsz2 = winSize >> 1; int winsz2 = winSize >> 1;
...@@ -160,7 +160,7 @@ void stereo_bm(const oclMat &left, const oclMat &right, oclMat &disp, ...@@ -160,7 +160,7 @@ void stereo_bm(const oclMat &left, const oclMat &right, oclMat &disp,
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
///////////////////////////////postfilter_textureness/////////////////////// ///////////////////////////////postfilter_textureness///////////////////////
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
void postfilter_textureness(oclMat &left, int winSize, static void postfilter_textureness(oclMat &left, int winSize,
float avergeTexThreshold, oclMat &disparity) float avergeTexThreshold, oclMat &disparity)
{ {
Context *clCxt = left.clCxt; Context *clCxt = left.clCxt;
...@@ -197,7 +197,7 @@ void postfilter_textureness(oclMat &left, int winSize, ...@@ -197,7 +197,7 @@ void postfilter_textureness(oclMat &left, int winSize,
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////operator///////////////////////////////// /////////////////////////////////////operator/////////////////////////////////
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
void operator_(oclMat &minSSD, oclMat &leBuf, oclMat &riBuf, int preset, int ndisp, static void operator_(oclMat &minSSD, oclMat &leBuf, oclMat &riBuf, int preset, int ndisp,
int winSize, float avergeTexThreshold, const oclMat &left, int winSize, float avergeTexThreshold, const oclMat &left,
const oclMat &right, oclMat &disparity) const oclMat &right, oclMat &disparity)
......
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