Skip to content

Commit

Permalink
fix camera capture to flip image after bg reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
shun-iwasawa committed Apr 10, 2023
1 parent fbbc07c commit 831840e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toonz/sources/toonz/penciltestpopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 831840e

Please sign in to comment.