Estimates biometric masks for anonymization, such as the face and ears.

biometric_mask(file, type = c("ct", "mri"), ...)

ct_biometric_mask(file, ...)

mri_biometric_mask(file, ...)

Arguments

file

Filename (or nifti) of image

type

character of ct for CT images or mri for magnetic resonance images

...

arguments to pass to ct/mri_ear_mask and ct/mri_face_mask

Value

Object of class nifti

Examples

if (FALSE) { file = "~/Desktop/Desktop/scratch/100-318_20070723_0957_CT_3_CT_Head-.nii.gz" mask = NULL robust = FALSE mask = ct_biometric_mask( file = file, robust = FALSE ) img = readnii(file) rimg = randomize_mask(img, mask = face) }