mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
Merge pull request #19685 from danbey:setting_stereoBMImpl_in_init_list
Init params (StereoBMParams) in StereoBMImpl constructor initialization list * Init StereoBMImpl in initialization list To improve preformence it is better to init the params (StereoBMImpl) in the initialization list. * coding style * drop useless copy/move ctor Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
This commit is contained in:
parent
601690695e
commit
31f66766b7
@ -1148,13 +1148,15 @@ class StereoBMImpl CV_FINAL : public StereoBM
|
||||
{
|
||||
public:
|
||||
StereoBMImpl()
|
||||
: params()
|
||||
{
|
||||
params = StereoBMParams();
|
||||
// nothing
|
||||
}
|
||||
|
||||
StereoBMImpl( int _numDisparities, int _SADWindowSize )
|
||||
: params(_numDisparities, _SADWindowSize)
|
||||
{
|
||||
params = StereoBMParams(_numDisparities, _SADWindowSize);
|
||||
// nothing
|
||||
}
|
||||
|
||||
void compute( InputArray leftarr, InputArray rightarr, OutputArray disparr ) CV_OVERRIDE
|
||||
|
Loading…
Reference in New Issue
Block a user