Sometimes the doctor doesn\'t flatten it.What I want to do is checking whether it is not flat. I use a canny algorithm to handle it.
// E