Java implementation of the Hough transform and RANSAC algorithm