I have an image:
pic = Import[
"http://note.youdao.com/yws/public/resource/\
2c5a562224240edcf1631fcd39810f56/55FA538207424C0A98AB548724994AE1"]
that I want to binarize. When I try to do it in Mathematica, the results is
My code is
bin = MorphologicalBinarize[pic // ColorNegate, {0.4, 0.6}]
I tried this many times. The result was always bad. I want to binarize the image so I can count the lattice (including that adjacent to the border). Can anyone help me?
LocalAdaptiveBinarize
. $\endgroup$