fix warnings on Linux
This commit is contained in:
parent
3f81a152b9
commit
f8985bb7fc
@ -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)
|
|||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
///////////////////////////////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,
|
|||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
///////////////////////////////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,
|
|||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
/////////////////////////////////////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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user