@@ -82,18 +82,18 @@ jsi::Object FOCV_Function::invoke(jsi::Runtime &runtime, const jsi::Value *argum
8282 auto gamma = args.asNumber (5 );
8383 auto dst = args.asMatPtr (6 );
8484
85- String out = std::to_string (src1->cols ) + " x" + std::to_string (src1->rows ) + " type: " + std::to_string (src1->type ());
86- out += std::to_string (src2->cols ) + " x" + std::to_string (src2->rows ) + " type: " + std::to_string (src2->type ());
87- value.setProperty (runtime, " value" , out);
88-
89- // if (count > 7)
90- // {
91- // auto dtype = args.asNumber(7);
92-
93- // cv::addWeighted(*src1, alpha, *src2, beta, gamma, *dst, dtype);
94- // break;
95- // }
96- // cv::addWeighted(*src1, alpha, *src2, beta, gamma, *dst);
85+ // String out = std::to_string(src1->cols) + "x" + std::to_string(src1->rows) + " type: " + std::to_string(src1->type());
86+ // out += std::to_string(src2->cols) + "x" + std::to_string(src2->rows) + " type: " + std::to_string(src2->type());
87+ // value.setProperty(runtime, "value", out);
88+
89+ if (count > 7 )
90+ {
91+ auto dtype = args.asNumber (7 );
92+
93+ cv::addWeighted (*src1, alpha, *src2, beta, gamma, *dst, dtype);
94+ break ;
95+ }
96+ cv::addWeighted (*src1, alpha, *src2, beta, gamma, *dst);
9797 }
9898 break ;
9999 case hashString (" batchDistance" , 13 ):
0 commit comments