I tried equalizing your image (Lookup Table: Equalize) and searched for a horizantal edge (Find Straight Edge: Horizantal Edge) with a very high contrast value (100) inside a very big ROI and that seems to work fairly robust. I'm attaching the Vision Builder Script.
Let me know if you have any questions.
Regards,
Yusuf C.
Applications Engineer
National Instruments