ALVIN Mask
mm | The resolution for the MNI template to correspond to. |
---|---|
... | additional arguments to pass to |
Path to ALVIN NIfTI image
alvin_mask()
#> [1] "/home/runner/work/_temp/Library/alvin/ALVIN_mask_v1.nii.gz"
alvin_mask(mm = 1)
#> [1] "/home/runner/work/_temp/Library/alvin/ALVIN_mask_v1_1mm.nii.gz"
alvin_mask(mm = 0.5)
#> [1] "/home/runner/work/_temp/Library/alvin/ALVIN_mask_v1_0.5mm.nii.gz"
alvin_image()
#> NIfTI-1 format
#> Type : nifti
#> Data Type : 4 (INT16)
#> Bits per Pixel : 16
#> Slice Code : 0 (Unknown)
#> Intent Code : 0 (None)
#> Qform Code : 2 (Aligned_Anat)
#> Sform Code : 2 (Aligned_Anat)
#> Dimension : 91 x 109 x 91
#> Pixel Dimension : 2 x 2 x 2
#> Voxel Units : mm
#> Time Units : sec
testthat::expect_equal(
dim(alvin_image(1, read_data = FALSE)),
c(182L, 218L, 182L))
#> Warning: Need to change bitpix and datatype to FLOAT32 due to NAs
#> Error in datatyper(nim, warn = warn) object 'nim' not found
testthat::expect_equal(
dim(alvin_image(0.5, read_data = FALSE)),
c(364L, 436L, 364L))
#> Warning: Need to change bitpix and datatype to FLOAT32 due to NAs
#> Error in datatyper(nim, warn = warn) object 'nim' not found