How to choose parameters for adaptive binarization automatically?

73 views Asked by At

I am using the function

cv :: adaptiveThreshold (InputArray src,
OutputArray dst,
double maxValue,
int adaptiveMethod,
int thresholdType,
int blockSize,
double C
)

I have to set the blockSize and C values ​​manually. But each image needs unique values. Is it possible to calculate blockSize and C in some way? Or maybe there are similar functions where the parameters are selected automatically?

0

There are 0 answers