整改摄像头未使用一行代码

rectification of the camera is not used for a line of code

对公共代码整改有疑问

sf = 600 / MAX ( imageSize0.width , imageSize0.height )

为什么是 600?为什么不保留 h = height 和 w=width

 if (!isVerticalStereo) {
    sf = 600./MAX(imageSize0.width, imageSize0.height);
    w = cvRound(imageSize0.width*sf);
    h = cvRound(imageSize0.height*sf);
    canvas.create(h, w*2, CV_8UC3);
}
else {
    sf= 300./MAX(imageSize0.width, imageSize0.height);
    w = cvRound(imageSize0.width*sf);
    h = cvRound(imageSize0.height*sf);
    canvas.create(h*2, w, CV_8UC3);

据我了解,这段代码的目的是确保图像的最长边在某些情况下不超过 600,在其他情况下不超过 300。它还保持原样的口粮。当我想确保处理时间不会超过一定数量时,我个人会使用这种模式。但是,我不确定它是否是计算机视觉的最佳实践。