/* * checkPosition * checks that the array allocated for writing is large * enough. Reallocates if necessary. */ void U3DBitStreamWriter::checkPosition() { if((MLuint32)_dataPosition + 2 > _data.size()) { allocateDataBuffer(_dataPosition + 2 + U3D_DATASIZEINCREMENT); } }
void SGMStereo::initialize(const png::image<png::rgb_pixel>& leftImage, const png::image<png::rgb_pixel>& rightImage) { setImageSize(leftImage, rightImage); allocateDataBuffer(); }
void SGMStereo::initialize(const cv::Mat& leftImage,const cv::Mat& rightImage) { widthStep_ = width_ + 15 - (width_ - 1)%16; allocateDataBuffer(); }