Package com.xinapse.image.template
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 TypeMethodDescriptionintbooleanstatic ICBMLabelget(int label) Returns theICBMLabelfrom an integer region label.static ICBMLabelReturns theICBMLabelfrom a label name.static ICBMLabelget(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
Tests whether thisICBMLabelname contains the sub-string, ignoring case. -
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
public boolean isCSF()Tests whether thisICBMLabelis for a region that contains CSF.- Returns:
trueif thisICBMLabelis contains CSF;falseotherwise.
-
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
public boolean isCerebellum()Tests whether thisICBMLabelis part of the cerebellum.- Returns:
trueif thisICBMLabelis part of the cerebellum;falseotherwise.
-
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
public boolean isVermis()Tests whether thisICBMLabelis part of the vermis.- Returns:
trueif thisICBMLabelis part of the vermis;falseotherwise.
-
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
public boolean isTemporal()Tests whether thisICBMLabelis part of the temporal lobe cortex.- Returns:
trueif thisICBMLabelis part of the temporal lobe cortex;falseotherwise.
-
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
public boolean isFrontal()Tests whether thisICBMLabelis part of the frontal lobe cortex.- Returns:
trueif thisICBMLabelis part of the frontal lobe cortex;falseotherwise.
-
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
public boolean isOrbito()Tests whether thisICBMLabelis part of the orbito-frontal/lateral cortex.- Returns:
trueif thisICBMLabelis part of the orbito-frontal/lateral cortex;falseotherwise.
-
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
public boolean isHippocampus()Tests whether thisICBMLabelis hippocampus.- Returns:
trueif thisICBMLabelis hippocampus;falseotherwise.
-
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
public boolean isAmygdala()Tests whether thisICBMLabelis amygdala.- Returns:
trueif thisICBMLabelis amygdala;falseotherwise.
-
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
public boolean isAccumbens()Tests whether thisICBMLabelis Accumbens.- Returns:
trueif thisICBMLabelis Accumbens;falseotherwise.
-
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
public boolean isMedioTemporal()Tests whether thisICBMLabelis part of the medio-temporal cortex.- Returns:
trueif thisICBMLabelis part of the medio-temporal cortex;falseotherwise.
-
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
public boolean isPutamen()Tests whether thisICBMLabelis part of the putamen.- Returns:
trueif thisICBMLabelis part of the putamen;falseotherwise.
-
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
public boolean isPallidum()Tests whether thisICBMLabelis part of the pallidum.- Returns:
trueif thisICBMLabelis part of the pallidum;falseotherwise.
-
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
public boolean isBasalGanglia()Tests whether thisICBMLabelis part of the basal ganglia.- Returns:
trueif thisICBMLabelis part of the basal ganglia;falseotherwise.
-
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
public boolean isCingulate()Tests whether thisICBMLabelis part of the cingulate.- Returns:
trueif thisICBMLabelis part of the cingulate;falseotherwise.
-
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
public boolean isCuneus()Tests whether thisICBMLabelis part of the cuneus.- Returns:
trueif thisICBMLabelis part of the cuneus;falseotherwise.
-
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
public boolean isParietal()Tests whether thisICBMLabelis part of the parietal.- Returns:
trueif thisICBMLabelis part of the parietal;falseotherwise.
-
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
public boolean isCentral()Tests whether thisICBMLabelis part of the central.- Returns:
trueif thisICBMLabelis part of the central;falseotherwise.
-
get
Returns theICBMLabelat a given image location.- Parameters:
xyz- the image location, in standard coordinates with the origin at the centre of the field-of-view.- Returns:
- the
ICBMLabelat the specified image location, ornullif there is no lable at that location.
-
getAllLabels
Returns an array of all known ICBMLabels.- Returns:
- all known ICBMLabels.
-
compareTo
- Specified by:
compareToin interfaceComparable<ICBMLabel>
-
equals
-
hashCode
public int hashCode() -
main
Run the self-test on theICBMLabelclass.- Parameters:
args- ignored.
-