Replaced app/main() with simple approach.
gradientAngles is now a CV_64F matrix.