I’m sure you can translate that stuff adequately.
docs for that old stuff should be in the docs to v2.4.
it’s just a few Mats. use regular Mat constructors that use their own memory. get rid of the double
arrays.
pws
and cws
aren’t shown so only you know what they contain.