fixes #25 by validating parameters so openCV calls don't crash
Merge branch 'line_detection' into development