Package com.xinapse.image.template
Class HeadTemplate
java.lang.Object
com.xinapse.image.template.HeadTemplate
Access to the built-in and head template images. Some of these templates are from the
Montreal Neurological Institute, and are copyrighted.
The following copyright notice is provided as a condition of inclusion in this software package.
Copyright © 1993—2004 Louis Collins, McConnell Brain Imaging Centre, Montreal Neurological Institute, McGill University. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies. The authors and McGill University make no representations about the suitability of this software for any purpose. It is provided “as is” without express or implied warranty. The authors are not responsible for any data loss, equipment damage, property loss, or injury to subjects or patients resulting from the use or misuse of this software package.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the proton-density-weighted MS template image. -
Method Summary
Modifier and TypeMethodDescriptionstatic WritableImage
Returns the built-in csf probability template image.static WritableImage
Returns the built-in grey-matter probability template image.static WritableImage
Returns the built-in ICBM csf probability template image.static WritableImage
Returns the built-in ICBM grey-matter probability template image.static WritableImage
Returns the built-in ICBM intra-cranial cavity mask.Returns the built-in ICBM labels.static WritableImage
Returns the built-in ICBM labels image.static WritableImage
Returns the built-in lesion probability template image (which has been warped to the same space as the T1-weighted ICBM template image).static WritableImage
Returns the built-in lateral ICBM ventricle probability template image.static WritableImage
getICBMMSLesionProbTemplate
(boolean reverseSlices) Returns the built-in MS lesion probability image matched to the ICBM template.static WritableImage
getICBMMSPDHeadTemplate
(boolean reverseSlices) Returns the built-in ICBM proton density weighted head template image.static WritableImage
getICBMTemplateImage
(WeightingType weightingType) Returns the built-in ICBM template image of the specified weighting type.static WritableImage
Returns the built-in ICBM white-matter probability template image.static com.xinapse.geom3d.TessellatedSphere
Returns a pre-calculated surface mesh of the intra-cranial cavity for any of the template images (the T1, T2 or PD templates).static WritableImage
Returns the built-in lesion probability template image (which has been warped to the same space as the T1-weighted template image).static WritableImage
Returns the built-in lateral ventricle probability template image.static WritableImage
getMSLesionCorrelTemplate
(boolean reverseSlices) Returns the built-in MS lesion correlation template image.static WritableImage
getMSLesionProbTemplate
(boolean reverseSlices) Returns the built-in MS lesion probability template image.static WritableImage
getMSPDHeadTemplate
(boolean reverseSlices) Returns the built-in proton density weighted head template image.static WritableImage
getTemplateImage
(WeightingType weightingType) Returns the a built-in template image of the specified weighting type.static WritableImage
Returns the built-in white-matter probability template image.
-
Field Details
-
MS_PD_IMAGE_NAME
The name of the proton-density-weighted MS template image.- See Also:
-
-
Method Details
-
getMSPDHeadTemplate
Returns the built-in proton density weighted head template image.- Parameters:
reverseSlices
- if the image should be returned with the slice order reversed.- Returns:
- the built-in proton density weighted template image.
- Throws:
IOException
- if the template image cannot be read.
-
getMSLesionProbTemplate
Returns the built-in MS lesion probability template image.- Parameters:
reverseSlices
- if the image should be returned with the slice order reversed.- Returns:
- the built-in MS lesion probability template image.
- Throws:
IOException
- if the template image cannot be read.
-
getMSLesionCorrelTemplate
Returns the built-in MS lesion correlation template image.- Parameters:
reverseSlices
- if the image should be returned with the slice order reversed.- Returns:
- the built-in MS lesion correlation template image.
- Throws:
IOException
- if the template image cannot be read.
-
getTemplateImage
Returns the a built-in template image of the specified weighting type.- Parameters:
weightingType
- the type of image weighting for the template.- Returns:
- the built-in template image.
- Throws:
IOException
- if the template image cannot be read.
-
getGMProbTemplate
Returns the built-in grey-matter probability template image.- Returns:
- the built-in grey-matter probability template image.
- Throws:
IOException
- if the greay-matter probability image cannot be read.
-
getWMProbTemplate
Returns the built-in white-matter probability template image.- Returns:
- the built-in white-matter probability template image.
- Throws:
IOException
- if the white-matter probability image cannot be read.
-
getCSFProbTemplate
Returns the built-in csf probability template image.- Returns:
- the built-in csf probability template image.
- Throws:
IOException
- if the csf probability image cannot be read.
-
getLVProbTemplate
Returns the built-in lateral ventricle probability template image.- Returns:
- the built-in lateral ventricle probability template image.
- Throws:
IOException
- if the lateral ventricle probability image cannot be read.
-
getLesionProbTemplate
Returns the built-in lesion probability template image (which has been warped to the same space as the T1-weighted template image).- Returns:
- the built-in lesion probability template image.
- Throws:
IOException
- if the lesion probability cannot be read.
-
getICBMMSPDHeadTemplate
Returns the built-in ICBM proton density weighted head template image.- Parameters:
reverseSlices
- if the image should be returned with the slice order reversed.- Returns:
- the built-in ICBM proton density weighted template image.
- Throws:
IOException
- if the template image cannot be read.
-
getICBMMSLesionProbTemplate
Returns the built-in MS lesion probability image matched to the ICBM template.- Parameters:
reverseSlices
- if the image should be returned with the slice order reversed.- Returns:
- the built-in MS lesion probability template image matched to the ICBM template.
- Throws:
IOException
- if the image cannot be read.
-
getICBMTemplateImage
Returns the built-in ICBM template image of the specified weighting type.- Parameters:
weightingType
- the type of image weighting for the template.- Returns:
- the built-in ICBM template image.
- Throws:
IOException
- if the template image cannot be read.
-
getICBMGMProbTemplate
Returns the built-in ICBM grey-matter probability template image.- Returns:
- the built-in ICBM grey-matter probability template image.
- Throws:
IOException
- if the ICBM grey-matter probability image cannot be read.
-
getICBMWMProbTemplate
Returns the built-in ICBM white-matter probability template image.- Returns:
- the built-in ICBM white-matter probability template image.
- Throws:
IOException
- if the ICBM white-matter probability image cannot be read.
-
getICBMCSFProbTemplate
Returns the built-in ICBM csf probability template image.- Returns:
- the built-in ICBM csf probability template image.
- Throws:
IOException
- if the ICBM csf probability image cannot be read.
-
getICBMLVProbTemplate
Returns the built-in lateral ICBM ventricle probability template image.- Returns:
- the built-in lateral ICBM ventricle probability template image.
- Throws:
IOException
- if the ICBM lateral ventricle probability image cannot be read.
-
getICBMLesionProbTemplate
Returns the built-in lesion probability template image (which has been warped to the same space as the T1-weighted ICBM template image).- Returns:
- the built-in lesion probability template image.
- Throws:
IOException
- if the lesion probability cannot be read.
-
getICBMICCMask
Returns the built-in ICBM intra-cranial cavity mask.- Returns:
- the built-in ICBM intra-cranial cavity mask image.
- Throws:
IOException
- if the ICBM intra-cranial cavity mask image cannot be read.
-
getICBMLabelsImage
Returns the built-in ICBM labels image.- Returns:
- the built-in ICBM labels image.
- Throws:
IOException
- if the ICBM labels image cannot be read.
-
getICBMLabels
Returns the built-in ICBM labels.- Returns:
- the built-in ICBM labels.
- Throws:
IOException
- if the ICBM labels cannot be read.
-
getIccMesh
Returns a pre-calculated surface mesh of the intra-cranial cavity for any of the template images (the T1, T2 or PD templates).- Returns:
- a surface mesh of the ICC.
- Throws:
IOException
- if the mesh cannot be found because a jar file is missing, or the mesh is missing from the jar file.
-