- let dbl_data = R.map fromIntegral arrSlice'
- let output = zoom dbl_data zoom_factor
- write_values_slice_to_bitmap (z_slice 0 output) out_file
+
+ -- If zoom isn't being inlined we need to extract the slice before hand,
+ -- and convert it to the require formed.
+ let dbl_data = R.compute $ R.map fromIntegral arrSlice'
+ let output = zoom dbl_data zoom_factor
+ let arrSlice0 = R.computeUnboxed $ z_slice 0 output
+
+ write_values_slice_to_bitmap arrSlice0 out_file