openCV has different size between float and double.
The type cast between float and double should be cared very much.