/// <summary> /// Sets the state of fulldp in the StereoSGBM algorithm allowing full-scale 2-pass dynamic programming algorithm. /// It will consume O(W*H*numDisparities) bytes, which is large for 640x480 stereo and huge for HD-size pictures. By default this is false /// </summary> private void btnFullDPState_Click(object sender, EventArgs e) { if (btnFullDPState.Text == "HH") { this.stereoMode = StereoSGBM.Mode.SGBM; btnFullDPState.Text = "SGBM"; } else { this.stereoMode = StereoSGBM.Mode.HH; btnFullDPState.Text = "HH"; } }
/// <summary> /// Sets the state of fulldp in the StereoSGBM algorithm allowing full-scale 2-pass dynamic programming algorithm. /// It will consume O(W*H*numDisparities) bytes, which is large for 640x480 stereo and huge for HD-size pictures. By default this is false /// </summary> private void btnFullDPState_Click(object sender, EventArgs e) { if (btnFullDPState.Text == "HH") { this.stereoMode = StereoSGBM.Mode.SGBM; btnFullDPState.Text = "SGBM"; } else { this.stereoMode = StereoSGBM.Mode.HH; btnFullDPState.Text = "HH"; } }