Class ICBMLabel
java.lang.Object
com.xinapse.image.template.ICBMLabel
- All Implemented Interfaces:
Comparable<ICBMLabel>
Class for handling the ICBM atlas labels.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal floatThe Dice Kappa score for the brain region.final shortThe integer label for the region in the left side of the brain.final shortThe integer label for the region in the right side of the brain.final shortThe Mindboggle ID for the label.static final intThe number of image columns for the ICBM labels image.static final intThe number of image rows for the ICBM labels image.static final intThe number of image slices for the ICBM labels image.final StringThe label name.final StringComments about the region label.static final floatThe pixel width for the ICBM labels image.static final floatThe pixel height for the ICBM labels image.static final floatThe pixel depth for the ICBM labels image. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanget(int label) Returns theICBMLabelfrom an integer region label.static ICBMLabelReturns theICBMLabelfrom a label name.get(org.jogamp.vecmath.Point3f xyz) Returns theICBMLabelat a given image location.static ICBMLabel[]Returns an array of all known ICBMLabels.static intgetLeftLabel(String labelName) Returns the integer code for the region name for the left side of the brain.static intgetRightLabel(String labelName) Returns the integer code for the region name for the right side of the brain.inthashCode()booleanTests whether thisICBMLabelis Accumbens.static booleanisAccumbens(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is Accumbens.booleanTests whether thisICBMLabelis amygdala.static booleanisAmygdala(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is amygdala.booleanTests whether thisICBMLabelis part of the basal ganglia.static booleanisBasalGanglia(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the basal ganglia.booleanTests whether thisICBMLabelis part of the central.static booleanisCentral(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the central.booleanTests whether thisICBMLabelis part of the cerebellum.static booleanisCerebellum(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is cerebellum.booleanTests whether thisICBMLabelis part of the cingulate.static booleanisCingulate(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the cingulate.booleanisCSF()Tests whether thisICBMLabelis for a region that contains CSF.static booleanisCSF(org.jogamp.vecmath.Point3f xyz) Tests whether the region at the given point contains CSF.booleanisCuneus()Tests whether thisICBMLabelis part of the cuneus.static booleanisCuneus(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the cuneus.booleanTests whether thisICBMLabelis part of the frontal lobe cortex.static booleanisFrontal(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the frontal lobe cortex.booleanTests whether thisICBMLabelis hippocampus.static booleanisHippocampus(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is hippocampus.booleanTests whether thisICBMLabelis part of the medio-temporal cortex.static booleanisMedioTemporal(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the medio-temporal cortex.booleanisOrbito()Tests whether thisICBMLabelis part of the orbito-frontal/lateral cortex.static booleanisOrbito(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the orbito-frontal/lateral cortex.booleanTests whether thisICBMLabelis part of the pallidum.static booleanisPallidum(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the pallidum.booleanTests whether thisICBMLabelis part of the parietal.static booleanisParietal(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the parietal.booleanTests whether thisICBMLabelis part of the putamen.static booleanisPutamen(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the putamen.static booleanisSeptum(org.jogamp.vecmath.Point3f xyz) Tests whether the region at the given point is septum.booleanTests whether thisICBMLabelis part of the temporal lobe cortex.static booleanisTemporal(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the temporal lobe cortex.booleanisVermis()Tests whether thisICBMLabelis part of the vermis.static booleanisVermis(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is vermis.static voidRun the self-test on theICBMLabelclass.booleannameContains(String subString) Tests whether thisICBMLabelname contains the sub-string, ignoring case.toString()
-
Field Details
-
N_COLS
public static final int N_COLSThe number of image columns for the ICBM labels image. -
N_ROWS
public static final int N_ROWSThe number of image rows for the ICBM labels image. -
N_SLICES
public static final int N_SLICESThe number of image slices for the ICBM labels image. -
PIXEL_X_SIZE
public static final float PIXEL_X_SIZEThe pixel width for the ICBM labels image. -
PIXEL_Y_SIZE
public static final float PIXEL_Y_SIZEThe pixel height for the ICBM labels image. -
PIXEL_Z_SIZE
public static final float PIXEL_Z_SIZEThe pixel depth for the ICBM labels image. -
mindboggleID
public final short mindboggleIDThe Mindboggle ID for the label. -
name
The label name. -
labelRight
public final short labelRightThe integer label for the region in the right side of the brain. -
labelLeft
public final short labelLeftThe integer label for the region in the left side of the brain. -
note
Comments about the region label. -
diceKappa
public final float diceKappaThe Dice Kappa score for the brain region.
-
-
Method Details
-
toString
-
get
Returns theICBMLabelfrom an integer region label. The integer label can correspond to either right side or the left side of the brain. -
get
Returns theICBMLabelfrom a label name.- Parameters:
name- the name of the ICBM region.- Returns:
- the
ICBMLabelcorresponding to the supplied integer name. - Throws:
InvalidArgumentException- if no ICBM label exists with the supplied name.
-
getRightLabel
Returns the integer code for the region name for the right side of the brain.- Parameters:
labelName- the region name.- Returns:
- the integer code for the region name for the right side of the brain.
- Throws:
NoSuchFieldError- if there is no region with the supplied name.
-
getLeftLabel
Returns the integer code for the region name for the left side of the brain.- Parameters:
labelName- the region name.- Returns:
- the integer code for the region name for the left side of the brain.
- Throws:
NoSuchFieldError- if there is no region with the supplied name.
-
nameContains
-
isSeptum
public static boolean isSeptum(org.jogamp.vecmath.Point3f xyz) Tests whether the region at the given point is septum.- Parameters:
xyz- the position to test.- Returns:
trueif there is septum at this point;falseotherwise.
-
isCSF
public static boolean isCSF(org.jogamp.vecmath.Point3f xyz) Tests whether the region at the given point contains CSF.- Parameters:
xyz- the position to test.- Returns:
trueif there is CSF at this point;falseotherwise.
-
isCSF
-
isCerebellum
public static boolean isCerebellum(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is cerebellum.- Parameters:
xyz- the position to test.- Returns:
trueif there is cerebellum at this point;falseotherwise.
-
isCerebellum
-
isVermis
public static boolean isVermis(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is vermis.- Parameters:
xyz- the position to test.- Returns:
trueif there is vermis at this point;falseotherwise.
-
isVermis
-
isTemporal
public static boolean isTemporal(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the temporal lobe cortex.- Parameters:
xyz- the position to test.- Returns:
trueif there is temporal lobe cortex at this point;falseotherwise.
-
isTemporal
-
isFrontal
public static boolean isFrontal(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the frontal lobe cortex.- Parameters:
xyz- the position to test.- Returns:
trueif there is frontal lobe cortex at this point;falseotherwise.
-
isFrontal
-
isOrbito
public static boolean isOrbito(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the orbito-frontal/lateral cortex.- Parameters:
xyz- the position to test.- Returns:
trueif there is orbito-frontal/lateral cortex at this point;falseotherwise.
-
isOrbito
-
isHippocampus
public static boolean isHippocampus(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is hippocampus.- Parameters:
xyz- the position to test.- Returns:
trueif there is hippocampus at this point;falseotherwise.
-
isHippocampus
-
isAmygdala
public static boolean isAmygdala(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is amygdala.- Parameters:
xyz- the position to test.- Returns:
trueif there is amygdala at this point;falseotherwise.
-
isAmygdala
-
isAccumbens
public static boolean isAccumbens(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is Accumbens.- Parameters:
xyz- the position to test.- Returns:
trueif there is Accumbens at this point;falseotherwise.
-
isAccumbens
-
isMedioTemporal
public static boolean isMedioTemporal(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the medio-temporal cortex.- Parameters:
xyz- the position to test.- Returns:
trueif there is medio-temporal cortex at this point;falseotherwise.
-
isMedioTemporal
-
isPutamen
public static boolean isPutamen(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the putamen.- Parameters:
xyz- the position to test.- Returns:
trueif there is putamen at this point;falseotherwise.
-
isPutamen
-
isPallidum
public static boolean isPallidum(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the pallidum.- Parameters:
xyz- the position to test.- Returns:
trueif there is pallidum at this point;falseotherwise.
-
isPallidum
-
isBasalGanglia
public static boolean isBasalGanglia(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the basal ganglia.- Parameters:
xyz- the position to test.- Returns:
trueif there is basal ganglia at this point;falseotherwise.
-
isBasalGanglia
-
isCingulate
public static boolean isCingulate(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the cingulate.- Parameters:
xyz- the position to test.- Returns:
trueif there is cingulate at this point;falseotherwise.
-
isCingulate
-
isCuneus
public static boolean isCuneus(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the cuneus.- Parameters:
xyz- the position to test.- Returns:
trueif there is cuneus at this point;falseotherwise.
-
isCuneus
-
isParietal
public static boolean isParietal(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the parietal.- Parameters:
xyz- the position to test.- Returns:
trueif there is parietal at this point;falseotherwise.
-
isParietal
-
isCentral
public static boolean isCentral(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the central.- Parameters:
xyz- the position to test.- Returns:
trueif there is central at this point;falseotherwise.
-
isCentral
-
get
-
getAllLabels
Returns an array of all known ICBMLabels.- Returns:
- all known ICBMLabels.
-
compareTo
- Specified by:
compareToin interfaceComparable<ICBMLabel>
-
equals
-
hashCode
-
main
-