/**将当前配置禁止到对应的Config * **/ public void Disable(Intel.RealSense.Config config) { //如果是红外,DisableStream需要定义 index,其他情况下不需要Index if (moduleType == ModuleStream.Infrared) { config.DisableStream(GetRsStream(ModuleType), index); } else { config.DisableStream(GetRsStream(ModuleType)); } }
/**将当前配置更新到对应的Config * **/ public void Enable(Intel.RealSense.Config config) { //如果是红外,EnableStream需要定义 index,其他情况下不需要Index if (moduleType == ModuleStream.Infrared) { config.EnableStream( GetRsStream(ModuleType), index, imagePart.width, imagePart.height, GetRs2Format(Format), FrameRate); } else { config.EnableStream( GetRsStream(ModuleType), imagePart.width, imagePart.height, GetRs2Format(Format), FrameRate); } }