Package com.xinapse.image
Class IntensityPreset
java.lang.Object
com.xinapse.image.IntensityPreset
An intensity preset, particularly for CT images.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<IntensityPreset>
Returns ajava.util.List<IntensityPreset>
of allIntensityPreset
s, both built-in and created by the user.static List<IntensityPreset>
Returns ajava.util.List<IntensityPreset>
of the built-inIntensityPreset
s.int
getMax()
Returns the maximum intensity value in the preset.int
getMin()
Returns the minimum intensity value in the preset.static List<IntensityPreset>
Returns ajava.util.List<IntensityPreset>
of theIntensityPreset
s created by the user and stored in the user preferences.static void
Runs the self-test on this class.toString()
Returns a String describing this IntensityPreset.
-
Method Details
-
toString
Returns a String describing this IntensityPreset. -
getMin
public int getMin()Returns the minimum intensity value in the preset.- Returns:
- the intensity value that should map to the bottom of the colour scale.
-
getMax
public int getMax()Returns the maximum intensity value in the preset.- Returns:
- the intensity value that should map to the top of the colour scale.
-
getBuiltInPresets
Returns ajava.util.List<IntensityPreset>
of the built-inIntensityPreset
s.- Returns:
- a list of built-in
IntensityPreset
s.
-
getUserPresets
Returns ajava.util.List<IntensityPreset>
of theIntensityPreset
s created by the user and stored in the user preferences.- Returns:
- a list of user-defined
IntensityPreset
s.
-
getAllPresets
Returns ajava.util.List<IntensityPreset>
of allIntensityPreset
s, both built-in and created by the user.- Returns:
- a list of all
IntensityPreset
s known to the system.
-
main
Runs the self-test on this class.- Parameters:
args
- the program arguments (ignored).
-