object extraction: image must be float when extracting region features