fix(disable order): fix disable order DISPARITY before RECTIFIED
This commit is contained in:
parent
b4ddf5a816
commit
47fb693b61
|
@ -496,12 +496,12 @@ void Synthetic::DisableStreamData(const Stream &stream, std::uint32_t depth) {
|
||||||
stream_enabled_mode_.erase(stream);
|
stream_enabled_mode_.erase(stream);
|
||||||
switch (stream) {
|
switch (stream) {
|
||||||
case Stream::LEFT_RECTIFIED: {
|
case Stream::LEFT_RECTIFIED: {
|
||||||
if (IsStreamEnabledSynthetic(Stream::RIGHT_RECTIFIED)) {
|
|
||||||
DisableStreamData(Stream::RIGHT_RECTIFIED, depth + 1);
|
|
||||||
}
|
|
||||||
if (IsStreamEnabledSynthetic(Stream::DISPARITY)) {
|
if (IsStreamEnabledSynthetic(Stream::DISPARITY)) {
|
||||||
DisableStreamData(Stream::DISPARITY, depth + 1);
|
DisableStreamData(Stream::DISPARITY, depth + 1);
|
||||||
}
|
}
|
||||||
|
if (IsStreamEnabledSynthetic(Stream::RIGHT_RECTIFIED)) {
|
||||||
|
DisableStreamData(Stream::RIGHT_RECTIFIED, depth + 1);
|
||||||
|
}
|
||||||
if (calib_model_ == CalibrationModel::PINHOLE) {
|
if (calib_model_ == CalibrationModel::PINHOLE) {
|
||||||
DeactivateProcessor<RectifyProcessorOCV>();
|
DeactivateProcessor<RectifyProcessorOCV>();
|
||||||
#ifdef WITH_CAM_MODELS
|
#ifdef WITH_CAM_MODELS
|
||||||
|
@ -515,12 +515,12 @@ void Synthetic::DisableStreamData(const Stream &stream, std::uint32_t depth) {
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case Stream::RIGHT_RECTIFIED: {
|
case Stream::RIGHT_RECTIFIED: {
|
||||||
if (IsStreamEnabledSynthetic(Stream::LEFT_RECTIFIED)) {
|
|
||||||
DisableStreamData(Stream::LEFT_RECTIFIED, depth + 1);
|
|
||||||
}
|
|
||||||
if (IsStreamEnabledSynthetic(Stream::DISPARITY)) {
|
if (IsStreamEnabledSynthetic(Stream::DISPARITY)) {
|
||||||
DisableStreamData(Stream::DISPARITY, depth + 1);
|
DisableStreamData(Stream::DISPARITY, depth + 1);
|
||||||
}
|
}
|
||||||
|
if (IsStreamEnabledSynthetic(Stream::LEFT_RECTIFIED)) {
|
||||||
|
DisableStreamData(Stream::LEFT_RECTIFIED, depth + 1);
|
||||||
|
}
|
||||||
if (calib_model_ == CalibrationModel::PINHOLE) {
|
if (calib_model_ == CalibrationModel::PINHOLE) {
|
||||||
DeactivateProcessor<RectifyProcessorOCV>();
|
DeactivateProcessor<RectifyProcessorOCV>();
|
||||||
#ifdef WITH_CAM_MODELS
|
#ifdef WITH_CAM_MODELS
|
||||||
|
|
Loading…
Reference in New Issue
Block a user