- dbl_data <- R.computeUnboxedP $ R.map fromIntegral arrSlice'
- raw_output <- zoom dbl_data zoom_factor
- arrSlice0 <- R.computeUnboxedP $ z_slice 0 raw_output
+ dbl_data <- R.computeUnboxedP $ R.map fromIntegral arrSlice'
+ raw_output <- zoom dbl_data zoom_factor
+ arrSlice0 <- R.computeUnboxedP $ z_slice 0 raw_output
+
+ -- Make doubles from the thresholds which are given as Ints.
+ let lt = fromIntegral lower_threshold
+ let ut = fromIntegral upper_threshold
+
+ let arr_bracketed = bracket_array lt ut arrSlice0
+ values <- R.computeUnboxedP $ R.map fromIntegral arr_bracketed
+ write_values_to_bmp output values