compute data mean for float_data
move if outside of forloop
Merge pull reuqest #134 from mavenlin/computemean

Support float data in compute_image_mean