Skip to content

Commit

Permalink
Fix get/set speckle size methods (#491)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
jacobperron authored and Joshua Whitley committed Jan 7, 2020
1 parent 144c704 commit cf762c4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@ class StereoProcessor
inline int getSpeckleSize() const
{
if (current_stereo_algorithm_ == BM) {
return block_matcher_->getBlockSize();
return block_matcher_->getSpeckleWindowSize();
}
return sg_block_matcher_->getBlockSize();
return sg_block_matcher_->getSpeckleWindowSize();
}

inline void setSpeckleSize(int param)
{
block_matcher_->setBlockSize(param);
sg_block_matcher_->setBlockSize(param);
block_matcher_->setSpeckleWindowSize(param);
sg_block_matcher_->setSpeckleWindowSize(param);
}

inline int getSpeckleRange() const
Expand Down

0 comments on commit cf762c4

Please sign in to comment.