4 import Data.Array.Repa (
10 import System.Environment (getArgs)
12 import Values (read_values_3d, write_values_1d)
13 import Grid (make_grid, zoom)
16 mri_shape = (Z :. 256 :. 256 :. 1)
22 let in_file = "./data/MRbrain.40." ++ color
23 let out_file = "MRbrain.40." ++ color ++ ".out"
24 mridata <- read_values_3d mri_shape in_file
25 let g = make_grid 1 mridata
26 let output = zoom g (8,8,1)
27 write_values_1d output out_file