From eabd5eb163f192f8107d2cb5b4bce9e5187a1137 Mon Sep 17 00:00:00 2001 From: okuyama_win Date: Wed, 13 Nov 2024 01:09:50 +0900 Subject: [PATCH] Fix type --- example-flow-distort-shader/src/MotionAmplifier.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example-flow-distort-shader/src/MotionAmplifier.h b/example-flow-distort-shader/src/MotionAmplifier.h index 2dc2cc3..a81166d 100644 --- a/example-flow-distort-shader/src/MotionAmplifier.h +++ b/example-flow-distort-shader/src/MotionAmplifier.h @@ -65,7 +65,7 @@ class MotionAmplifier { flow.calcOpticalFlow(rescaled); duplicateFirstChannel(flow.getFlow(), flow3); flow3 *= scaleFactor; - flow3 += cv::Scalar_(.5, .5, 0); + flow3 += cv::Scalar(.5, .5, 0); ofxCv::blur(flow3, blurAmount); int w = flow3.cols, h = flow3.rows; if(needToReset || accumulator.size() != flow3.size()) {