in c++, 1/128 will indeed only init the 1st Scalar component
(known, very old discussion …)
we should use :
paramTF2cedn.scalefactor = Scalar::all(1 / 128.);
in docs / samples
in c++, 1/128 will indeed only init the 1st Scalar component
(known, very old discussion …)
we should use :
paramTF2cedn.scalefactor = Scalar::all(1 / 128.);
in docs / samples