From e3205a6f9e0d88a13850de44789dd8309dba2ca5 Mon Sep 17 00:00:00 2001 From: Rodney Date: Apr 10 2023 20:16:43 +0000 Subject: Merge pull request #4820 from shun-iwasawa/p/fix_camera_capture_flip Fix Camera Capture to flip image after BG reduction --- diff --git a/toonz/sources/toonz/penciltestpopup.cpp b/toonz/sources/toonz/penciltestpopup.cpp index d479553..84e6a94 100644 --- a/toonz/sources/toonz/penciltestpopup.cpp +++ b/toonz/sources/toonz/penciltestpopup.cpp @@ -2750,12 +2750,12 @@ void PencilTestPopup::processImage(cv::Mat& image) { cv::INTER_LINEAR); } - // void PencilTestPopup::processImage(QImage& image) { - if (m_upsideDownCB->isChecked()) - cv::flip(image, image, -1); // flip in both directions // white bg reduction if (!m_whiteBGImg.empty() && m_bgReductionFld->getValue() != 0) bgReduction(image, m_whiteBGImg, m_bgReductionFld->getValue()); + // void PencilTestPopup::processImage(QImage& image) { + if (m_upsideDownCB->isChecked()) + cv::flip(image, image, -1); // flip in both directions // obtain histogram AFTER bg reduction m_camCapLevelControl->updateHistogram(image);