Determines values outside the surface of an image and gives a mask back with those values set to a replacement.
replace_outside_surface(
img,
value = 0,
threshold = 0,
replace_value = NA,
reorient = FALSE
)
img | nifti object or array |
---|---|
value | Value to check against. If zero, then
|
threshold | Include dimension if fewer than |
replace_value | Value to replace those outside the surface. |
reorient | Should image be reoriented if a filename?
Passed to |
Creates an array of binary values. If img
is a nifti
object, then a nifti
is returned