Added cropToImageEdges method to Line class
Corrected method extendToImageEdges in Line class.
Tests added for cropToImageEdges and extendToImageEdges
Corrected bresengam_line method in ImageClass.

There was a bug with cropping lines. So if the line bigger than image
then it just set endpoints to image edges without saving slope of the
line.
Merge branch 'extend_crop' of github.com:polart/SimpleCV into polart-extend_crop
Added cropToImageEdges method to Line class
Corrected method extendToImageEdges in Line class.
Tests added for cropToImageEdges and extendToImageEdges
Corrected bresengam_line method in ImageClass.

There was a bug with cropping lines. So if the line bigger than image
then it just set endpoints to image edges without saving slope of the
line.
Fixed bug in return format of line.

Should return endpoints as tuple, not as list.
grayscale matrix issue resolved

Signed-off-by: jayrambhia <jayrambhia777@gmail.com>
slight mods to tests
Merge branch 'develop' of https://github.com/sightmachine/SimpleCV into develop
Merge branch 'Image/cvmat_con1' of github.com:jayrambhia/SimpleCV into develop
Merge branch 'extend_crop' of github.com:polart/SimpleCV into develop
fixed keypointmatch crop, all disp test working
Merge pull request #488 from rajatkapoor/keypoint_fix

fixed keypointmatch crop, all disp test working
uhg standard
Merge branch 'develop' of https://github.com/sightmachine/SimpleCV into develop
Added Hough standard transmission to findLines.

Endpoints of the line are found with Bresenham's line algorithm.