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?