Since commit d8417af086 (July 2011) cv::compare produces an array with the same size and type as the input arrays. Signed-off-by: Michael Hanselmann <public@hansmi.ch>
d8417af086