public static enum AvgBrightness.Mode extends Enum<AvgBrightness.Mode>
Enum Constant and Description |
---|
NTSC_LUMINANCE
Luminance using the NTSC weighting scheme (equivalent to the Y in the
YUV colour space)
|
Modifier and Type | Method and Description |
---|---|
abstract double |
computeBrightness(MBFImage img,
FImage mask)
Compute the average brightness of the given image (applying the mask
if it's not
null ). |
static AvgBrightness.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AvgBrightness.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AvgBrightness.Mode NTSC_LUMINANCE
public static AvgBrightness.Mode[] values()
for (AvgBrightness.Mode c : AvgBrightness.Mode.values()) System.out.println(c);
public static AvgBrightness.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract double computeBrightness(MBFImage img, FImage mask)
null
).img
- the image to extract the average brightness frommask
- the mask