Perform arterial lesion segmentation using U-net.

arterialLesionSegmentation(
  image,
  antsxnetCacheDirectory = NULL,
  verbose = FALSE
)

Arguments

image

input histology image.

antsxnetCacheDirectory

destination directory for storing the downloaded template and model weights. Since these can be resused, if is.null(antsxnetCacheDirectory), these data will be downloaded to the subdirectory ~/.keras/ANTsXNet/.

verbose

print progress.

Value

segmentation and probability images

Author

Tustison NJ

Examples

if (FALSE) { library( ANTsRNet ) library( keras ) image <- antsImageRead( "image.nii.gz" ) output <- arterialLesionSegmentation( image ) }