I'm writing a program like below
class ocr
{
private:
public:
void char2mat(unsigned char* cimg, Mat &mat, int h, int w, int channel);
void rotate(Mat &frame);
void undistort(Mat &frame);
}
The problem is how am i able to set specific argument while running the program without writing down all the arguments. for example:,
is it possible to use char2mat function like this:
char2mat(test_img, output, channel=16)
without claiming h and w which should be default arguments. Maybe a struct would deal with this? Once there's a greater function than this, how's that possible to run it with plenty and plenty arguments written every time?