Remember that these cops write dozens of ticket a week and have more than you to show up for. Still, I think its easy to contest as there is no way he could have measured your window. Guessing shouldn't go over well with a judge.