private static IntPtr Create(bool transform_to_disparity) { object error; byte transform_direction = transform_to_disparity ? (byte)1 : (byte)0; return(NativeMethods.rs2_create_disparity_transform_block(transform_direction, out error)); }
public DisparityTransform(bool transform_to_disparity = true) { object error; byte transform_direction = transform_to_disparity ? (byte)1 : (byte)0; m_instance = new HandleRef(this, NativeMethods.rs2_create_disparity_transform_block(transform_direction, out error)); NativeMethods.rs2_start_processing_queue(m_instance.Handle, queue.m_instance.Handle, out error); }