コード例 #1
0
ファイル: utilities.py プロジェクト: BRAINSia/rs-fMRI-pilot
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)
コード例 #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)
コード例 #3
0
ファイル: utilities.py プロジェクト: BRAINSia/rs-fMRI-pilot
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)
コード例 #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)