title: OpenCV need to convert IPL_DEPTH_32S to IPL_DEPTH_32F
body: <p>I have a IPL_DEPTH_32S image (meaning I use 32bit integer to represent pixels) and I need to convert it to IPL_DEPTH_32F, so that I can apply template matching. Does anyone know the formula to convert the integers to floats, or of any functions built in to OpenCV that can do this?</p>