Adding custom functions to opencvjs

How would I go about adding my own functions into the opencv source so that they will be usable by whatever includes my built opencv.js?

no clue. guessing:

  • write your stuff
    – scribble in an existing module
    – or make your own module, in the contrib repo or main repo
  • whitelist your APIs in the emscripten stuff
  • build

or learn about emscripten itself.