Fixed occasional memory access violation in SegmentFilter.

Fixed occasional invalid clamping issue in GreenHorizon (clamping to image.height instead of image.height - 1)

Signed-off-by: Shannon Fenn <shannon.fenn@gmail.com>