OpenToonz - An open-source full-featured 2D animation creation software
C
fix camera capture to flip image after bg reduction
shun-iwasawa831840e569e1
diff --git a/toonz/sources/toonz/penciltestpopup.cpp b/toonz/sources/toonz/penciltestpopup.cppindex d47955375..84e6a94bf 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 reductionif (!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 reductionm_camCapLevelControl->updateHistogram(image);