fix bug about NaN data
Merge branch 'old' into slic_superpixel_segmentation