Itseez/opencv — pull request #2811 by arkunze (2014-05-30 15:33:32+00:00)
Title: A more efficient workaround for erode

Uses a faster workaround path than the ternary operator. Instead, it converts the data to int and continues to do min. Also, only applied for the datatype that exhibits the original bug.