Exemple #1
0
def clipSeedWithWhiteMatter(seed, mask, outfile):
    """
    This function takes in a seed image and a whiteMatter mask to clip the seed
    """
    import SimpleITK as sitk
    import os
    from utilities import clipSeed
    wmLabel = 1
    return clipSeed(seed, mask, wmLabel, outfile, invert=True)
Exemple #2
0
def clipSeedWithWhiteMatter(seed, mask, outfile):
    """
    This function takes in a seed image and a whiteMatter mask to clip the seed
    """
    import SimpleITK as sitk
    import os
    from utilities import clipSeed
    wmLabel = 1
    return clipSeed(seed, mask, wmLabel, outfile, invert=True)
Exemple #3
0
def clipSeedWithVentricles(seed, label, outfile):
    """
    This function takes in a seed image, and a BRAINSABC tissue segmentation image,
    threasholds the CSF component (ie. label=4) and then clips the seed mask
    """
    import SimpleITK as sitk
    import os
    from utilities import clipSeed
    csfLabel = 4
    return clipSeed(seed, label, csfLabel, outfile, invert=True)
Exemple #4
0
def clipSeedWithVentricles(seed, label, outfile):
    """
    This function takes in a seed image, and a BRAINSABC tissue segmentation image,
    threasholds the CSF component (ie. label=4) and then clips the seed mask
    """
    import SimpleITK as sitk
    import os
    from utilities import clipSeed
    csfLabel = 4
    return clipSeed(seed, label, csfLabel, outfile, invert=True)