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 allIntensityPresets, both built-in and created by the user.static List<IntensityPreset>Returns ajava.util.List<IntensityPreset>of the built-inIntensityPresets.intgetMax()Returns the maximum intensity value in the preset.intgetMin()Returns the minimum intensity value in the preset.static List<IntensityPreset>Returns ajava.util.List<IntensityPreset>of theIntensityPresets created by the user and stored in the user preferences.static voidRuns 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-inIntensityPresets.- Returns:
- a list of built-in
IntensityPresets.
-
getUserPresets
Returns ajava.util.List<IntensityPreset>of theIntensityPresets created by the user and stored in the user preferences.- Returns:
- a list of user-defined
IntensityPresets.
-
getAllPresets
Returns ajava.util.List<IntensityPreset>of allIntensityPresets, both built-in and created by the user.- Returns:
- a list of all
IntensityPresets known to the system.
-
main
Runs the self-test on this class.- Parameters:
args- the program arguments (ignored).
-