main2d :: Args -> R.DIM3 -> IO ()
main2d Args{..} shape = do
- let zoom_factor = (1, scale, scale)
+ let zoom_factor = (1 :: Int, scale, scale)
arr <- read_word16s input shape
arrSlice <- R.computeUnboxedP
$ z_slice (fromJust slice)
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 lt = fromIntegral lower_threshold :: Double
+ let ut = fromIntegral upper_threshold :: Double
let arr_bracketed = bracket_array lt ut arrSlice0
values <- R.computeUnboxedP $ R.map fromIntegral arr_bracketed