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
Modifier and TypeFieldDescriptionfinal float
The Dice Kappa score for the brain region.final short
The integer label for the region in the left side of the brain.final short
The integer label for the region in the right side of the brain.final short
The Mindboggle ID for the label.static final int
The number of image columns for the ICBM labels image.static final int
The number of image rows for the ICBM labels image.static final int
The number of image slices for the ICBM labels image.final String
The label name.final String
Comments about the region label.static final float
The pixel width for the ICBM labels image.static final float
The pixel height for the ICBM labels image.static final float
The pixel depth for the ICBM labels image. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static ICBMLabel
get
(int label) Returns theICBMLabel
from an integer region label.static ICBMLabel
Returns theICBMLabel
from a label name.static ICBMLabel
get
(org.jogamp.vecmath.Point3f xyz) Returns theICBMLabel
at a given image location.static ICBMLabel[]
Returns an array of all known ICBMLabels.static int
getLeftLabel
(String labelName) Returns the integer code for the region name for the left side of the brain.static int
getRightLabel
(String labelName) Returns the integer code for the region name for the right side of the brain.int
hashCode()
boolean
Tests whether thisICBMLabel
is Accumbens.static boolean
isAccumbens
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is Accumbens.boolean
Tests whether thisICBMLabel
is amygdala.static boolean
isAmygdala
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is amygdala.boolean
Tests whether thisICBMLabel
is part of the basal ganglia.static boolean
isBasalGanglia
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the basal ganglia.boolean
Tests whether thisICBMLabel
is part of the central.static boolean
isCentral
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the central.boolean
Tests whether thisICBMLabel
is part of the cerebellum.static boolean
isCerebellum
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is cerebellum.boolean
Tests whether thisICBMLabel
is part of the cingulate.static boolean
isCingulate
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the cingulate.boolean
isCSF()
Tests whether thisICBMLabel
is for a region that contains CSF.static boolean
isCSF
(org.jogamp.vecmath.Point3f xyz) Tests whether the region at the given point contains CSF.boolean
isCuneus()
Tests whether thisICBMLabel
is part of the cuneus.static boolean
isCuneus
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the cuneus.boolean
Tests whether thisICBMLabel
is part of the frontal lobe cortex.static boolean
isFrontal
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the frontal lobe cortex.boolean
Tests whether thisICBMLabel
is hippocampus.static boolean
isHippocampus
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is hippocampus.boolean
Tests whether thisICBMLabel
is part of the medio-temporal cortex.static boolean
isMedioTemporal
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the medio-temporal cortex.boolean
isOrbito()
Tests whether thisICBMLabel
is part of the orbito-frontal/lateral cortex.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.boolean
Tests whether thisICBMLabel
is part of the pallidum.static boolean
isPallidum
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the pallidum.boolean
Tests whether thisICBMLabel
is part of the parietal.static boolean
isParietal
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the parietal.boolean
Tests whether thisICBMLabel
is part of the putamen.static boolean
isPutamen
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the putamen.static boolean
isSeptum
(org.jogamp.vecmath.Point3f xyz) Tests whether the region at the given point is septum.boolean
Tests whether thisICBMLabel
is part of the temporal lobe cortex.static boolean
isTemporal
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is part of the temporal lobe cortex.boolean
isVermis()
Tests whether thisICBMLabel
is part of the vermis.static boolean
isVermis
(org.jogamp.vecmath.Point3f xyz) Tests whether the brain region at the given point is vermis.static void
Run the self-test on theICBMLabel
class.boolean
nameContains
(String subString) Tests whether thisICBMLabel
name 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 theICBMLabel
from an integer region label. The integer label can correspond to either right side or the left side of the brain. -
get
Returns theICBMLabel
from a label name.- Parameters:
name
- the name of the ICBM region.- Returns:
- the
ICBMLabel
corresponding 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 thisICBMLabel
name 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:
true
if there is septum at this point;false
otherwise.
-
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:
true
if there is CSF at this point;false
otherwise.
-
isCSF
public boolean isCSF()Tests whether thisICBMLabel
is for a region that contains CSF.- Returns:
true
if thisICBMLabel
is contains CSF;false
otherwise.
-
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:
true
if there is cerebellum at this point;false
otherwise.
-
isCerebellum
public boolean isCerebellum()Tests whether thisICBMLabel
is part of the cerebellum.- Returns:
true
if thisICBMLabel
is part of the cerebellum;false
otherwise.
-
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:
true
if there is vermis at this point;false
otherwise.
-
isVermis
public boolean isVermis()Tests whether thisICBMLabel
is part of the vermis.- Returns:
true
if thisICBMLabel
is part of the vermis;false
otherwise.
-
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:
true
if there is temporal lobe cortex at this point;false
otherwise.
-
isTemporal
public boolean isTemporal()Tests whether thisICBMLabel
is part of the temporal lobe cortex.- Returns:
true
if thisICBMLabel
is part of the temporal lobe cortex;false
otherwise.
-
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:
true
if there is frontal lobe cortex at this point;false
otherwise.
-
isFrontal
public boolean isFrontal()Tests whether thisICBMLabel
is part of the frontal lobe cortex.- Returns:
true
if thisICBMLabel
is part of the frontal lobe cortex;false
otherwise.
-
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:
true
if there is orbito-frontal/lateral cortex at this point;false
otherwise.
-
isOrbito
public boolean isOrbito()Tests whether thisICBMLabel
is part of the orbito-frontal/lateral cortex.- Returns:
true
if thisICBMLabel
is part of the orbito-frontal/lateral cortex;false
otherwise.
-
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:
true
if there is hippocampus at this point;false
otherwise.
-
isHippocampus
public boolean isHippocampus()Tests whether thisICBMLabel
is hippocampus.- Returns:
true
if thisICBMLabel
is hippocampus;false
otherwise.
-
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:
true
if there is amygdala at this point;false
otherwise.
-
isAmygdala
public boolean isAmygdala()Tests whether thisICBMLabel
is amygdala.- Returns:
true
if thisICBMLabel
is amygdala;false
otherwise.
-
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:
true
if there is Accumbens at this point;false
otherwise.
-
isAccumbens
public boolean isAccumbens()Tests whether thisICBMLabel
is Accumbens.- Returns:
true
if thisICBMLabel
is Accumbens;false
otherwise.
-
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:
true
if there is medio-temporal cortex at this point;false
otherwise.
-
isMedioTemporal
public boolean isMedioTemporal()Tests whether thisICBMLabel
is part of the medio-temporal cortex.- Returns:
true
if thisICBMLabel
is part of the medio-temporal cortex;false
otherwise.
-
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:
true
if there is putamen at this point;false
otherwise.
-
isPutamen
public boolean isPutamen()Tests whether thisICBMLabel
is part of the putamen.- Returns:
true
if thisICBMLabel
is part of the putamen;false
otherwise.
-
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:
true
if there is pallidum at this point;false
otherwise.
-
isPallidum
public boolean isPallidum()Tests whether thisICBMLabel
is part of the pallidum.- Returns:
true
if thisICBMLabel
is part of the pallidum;false
otherwise.
-
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:
true
if there is basal ganglia at this point;false
otherwise.
-
isBasalGanglia
public boolean isBasalGanglia()Tests whether thisICBMLabel
is part of the basal ganglia.- Returns:
true
if thisICBMLabel
is part of the basal ganglia;false
otherwise.
-
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:
true
if there is cingulate at this point;false
otherwise.
-
isCingulate
public boolean isCingulate()Tests whether thisICBMLabel
is part of the cingulate.- Returns:
true
if thisICBMLabel
is part of the cingulate;false
otherwise.
-
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:
true
if there is cuneus at this point;false
otherwise.
-
isCuneus
public boolean isCuneus()Tests whether thisICBMLabel
is part of the cuneus.- Returns:
true
if thisICBMLabel
is part of the cuneus;false
otherwise.
-
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:
true
if there is parietal at this point;false
otherwise.
-
isParietal
public boolean isParietal()Tests whether thisICBMLabel
is part of the parietal.- Returns:
true
if thisICBMLabel
is part of the parietal;false
otherwise.
-
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:
true
if there is central at this point;false
otherwise.
-
isCentral
public boolean isCentral()Tests whether thisICBMLabel
is part of the central.- Returns:
true
if thisICBMLabel
is part of the central;false
otherwise.
-
get
Returns theICBMLabel
at 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
ICBMLabel
at the specified image location, ornull
if there is no lable at that location.
-
getAllLabels
Returns an array of all known ICBMLabels.- Returns:
- all known ICBMLabels.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ICBMLabel>
-
equals
-
hashCode
public int hashCode() -
main
Run the self-test on theICBMLabel
class.- Parameters:
args
- ignored.
-