Ask Your Question
0

cuda stereoBM , some class poperty was not use

asked 2018-11-08 21:28:50 -0600

csd1994 gravatar image

here I have use GPU to accelerate stereoBM , but the result was not same as cpu. And I read the original source (opencv-3.4.0/modules/cudastereo/src/stereobm.cpp), I find that some param was not use in cuda stereoBM, such as MinDisparity, UniquenessRatio and so on , there was not function to setting this param value, is this a source code bug?

here is UniquenessRatio property set and get, and it also default zero.

int getUniquenessRatio() const { return 0; } void setUniquenessRatio(int /uniquenessRatio/) {}

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2018-11-14 13:56:13 -0600

In general, the different implementations of Stereo Block Match algorithms are not equivalent. They will not all implement every configuration setting, nor will they return the exact same block match results as each other, bit-for-bit. Each Stereo Block Match implementation may be better or worse for any particular problem to be solved on any particular hardware.

Different capabilities and results for each implementation are expected and it is not a bug. In particular, the GPUs are fast but simplistic machines; if full flexibility - supporting all configuration setting combinations - were added by a contributor, the implementation may become much more complicated and may slow down greatly.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2018-11-08 21:28:50 -0600

Seen: 713 times

Last updated: Nov 14 '18