Note that image() takes a fourth and fifth parameter. That is what you need.
You need to review imageMode() as it might be convenient to use another mode. You might find the default mode corners is convenient if it matches the behavior provided by OpenCV.
Kf