Class ICC
java.lang.Object
com.xinapse.image.template.ICC
Class for obtaining an intra-cranial cavity (ICC) mask from cerebral tissue probability maps.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.xinapse.apps.mask.BinaryMaskgetMask(float[] gmProb, float[] wmProb, float[] csfProb, int nCols, int nRows, int nSlices, boolean conservative) Returns an ICC mask from maps of the grey-matter, white-matter and CSF probability.static com.xinapse.apps.mask.BinaryMaskgetMask(ReadableImage gmProbImage, ReadableImage wmProbImage, ReadableImage csfProbImage, boolean conservative) Returns an ICC mask from images of the grey-matter, white-matter and CSF probability.
-
Method Details
-
getMask
public static com.xinapse.apps.mask.BinaryMask getMask(ReadableImage gmProbImage, ReadableImage wmProbImage, ReadableImage csfProbImage, boolean conservative) throws InvalidArgumentException, InvalidImageException Returns an ICC mask from images of the grey-matter, white-matter and CSF probability.- Parameters:
gmProbImage- the grey-matter probability image.wmProbImage- the white-matter probability image.csfProbImage- the CSF probability image.conservative- true if the mask is to be conservative (i.e., pixels in final mask are more likely to fall within the ICC); false for a more inclusive mask.- Returns:
- a
BinaryMaskof the intra-cranial cavity. - Throws:
InvalidImageException- if any of the input images is unsuitable.InvalidArgumentException- if the input images have mismatched dimensions.
-
getMask
public static com.xinapse.apps.mask.BinaryMask getMask(float[] gmProb, float[] wmProb, float[] csfProb, int nCols, int nRows, int nSlices, boolean conservative) throws InvalidArgumentException Returns an ICC mask from maps of the grey-matter, white-matter and CSF probability.- Parameters:
gmProb- the grey-matter probability map.wmProb- the white-matter probability map.csfProb- the CSF probability map.nCols- the number of voxel columns in the probability maps.nRows- the number of voxel rows in the probability maps.nSlices- the number of voxel slices in the probability maps.conservative- true if the mask is to be conservative (i.e., pixels in final mask are more likely to fall within the ICC); false for a more inclusive mask.- Returns:
- a
BinaryMaskof the intra-cranial cavity. - Throws:
InvalidArgumentException- if the input probability maps have mismatched dimensions.
-