Fix gcc compile error
Allow drawBox, clearBox and crop to accept non-int arguments
Add histogram(), applyCurve(), threshold() and toGray() without parameters
toBuffer() without arguments returns raw data
Fix compile warning
subtract() with arithmetic subtraction
scale() accepts one argument and tests updated
GCC build fix
Fix Detector crashes (and a similar instance in decoder)