public class AvgBrightness extends org.openimaj.image.mask.AbstractMaskedObject<org.openimaj.image.FImage> implements org.openimaj.image.analyser.ImageAnalyser<org.openimaj.image.MBFImage>, FeatureVectorProvider<DoubleFV>
AvgBrightness.Mode.| Modifier and Type | Class and Description |
|---|---|
static class |
AvgBrightness.Mode
Modes for computing brightness.
|
| Constructor and Description |
|---|
AvgBrightness()
Construct with the NTSC_LUMINANCE mode and no mask set
|
AvgBrightness(AvgBrightness.Mode mode)
Construct with the given mode and no mask set
|
AvgBrightness(AvgBrightness.Mode mode,
org.openimaj.image.FImage mask)
Construct with the given mode and a mask.
|
| Modifier and Type | Method and Description |
|---|---|
void |
analyseImage(org.openimaj.image.MBFImage image) |
double |
getBrightness()
Get the brightness.
|
DoubleFV |
getFeatureVector() |
public AvgBrightness()
public AvgBrightness(AvgBrightness.Mode mode)
mode - the AvgBrightness.Modepublic AvgBrightness(AvgBrightness.Mode mode, org.openimaj.image.FImage mask)
mode - the AvgBrightness.Modemask - the mask.public void analyseImage(org.openimaj.image.MBFImage image)
analyseImage in interface org.openimaj.image.analyser.ImageAnalyser<org.openimaj.image.MBFImage>public double getBrightness()
public DoubleFV getFeatureVector()
getFeatureVector in interface FeatureVectorProvider<DoubleFV>