- All Implemented Interfaces:
Serializable
,Comparable<NamedLookupTable>
,java.lang.constant.Constable
This enum type wraps a selection of ImageJ's lookup tables (originally defined in class
LutLoader
).- Version:
- 2022/09/15 converted to enum type
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic void
brightLut
(ImageProcessor ip, int minGray) Modifies the lookup table to display a bright image with gray values in the range minGray ...static LUT
create
(byte[] r, byte[] g, byte[] b) Create a new lookup-table from three RGB arrays of length 256.getLUT()
Returns the actual lookup table for this named item.static void
Lists the contents of the lookup-table currently associated with the specified image.static NamedLookupTable
Returns the enum constant of this type with the specified name.static NamedLookupTable[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Fire
-
Grays
-
Ice
-
RedGreen
-
Rgb332
-
Spectrum
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getLUT
Returns the actual lookup table for this named item.- Returns:
- the associated
LUT
instance
-
create
Create a new lookup-table from three RGB arrays of length 256.- Parameters:
r
- Red component values.g
- Green component values.b
- Blue component values.- Returns:
- A new instance of type
LUT
.
-
listCurrentLut
Lists the contents of the lookup-table currently associated with the specified image.- Parameters:
ip
- the image.
-
brightLut
Modifies the lookup table to display a bright image with gray values in the range minGray ... 255. Does nothing if ip is of typeColorProcessor
.- Parameters:
ip
- the target image.minGray
- minimum gray value.
-