if you need ```image_sqsums``` with ```CV_32F``` depth you can pass ```CV_32F``` as last parameter in ```cv::integral```, e.g. ```integral(image.reshape(1), image_sums, temp, CV_32F, CV_32F);```