protected override void DisposeObject() { Marshal.StructureToPtr(State, _ptr, false); CvInvoke.cvReleaseStereoBMState(ref _ptr); }