In the long run I would like to extend the main recursive function RecogniseGeneric to be able to take only a recog info record as an argument (and maybe also knowledge). At the moment we pass: H, methoddb, depthString, knowledge. So in our recursion we create a recog info record, do stuff with it, unpack all the things to pass them to RecogniseGeneric for the image and the kernel and in that function again create a recog info record for that.
I also suggest that RecogniseGeneric should then return true/false if the recognition succeeded or failed.
In the long run I would like to extend the main recursive function RecogniseGeneric to be able to take only a recog info record as an argument (and maybe also knowledge). At the moment we pass: H, methoddb, depthString, knowledge. So in our recursion we create a recog info record, do stuff with it, unpack all the things to pass them to RecogniseGeneric for the image and the kernel and in that function again create a recog info record for that.
I also suggest that RecogniseGeneric should then return true/false if the recognition succeeded or failed.