Adaptive threshold
Someone suggested an adaptive threshold for me to get a desired result, however after messing with the parameters and settings I cannot get a similar result.
Here is the base image:
How can I get from that image to this image using an adaptive threshold?
Here is a snippet of what I've been trying
adaptiveThreshold(thr, thr, 255, ADAPTIVE_THRESH_MEAN_C, THRESH_BINARY, 101, 16);
Why are you using such a large block size (101) and why are you subtracting 16 from the weighted threshold? Both of those values seem excessive.
That code snippet probably wan't the best example, but it was just mean trying to learn how these values effect the end result.
Try removing the last two parameters and let them go by default.