public class AvgBrightness extends AbstractMaskedObject<FImage> implements ImageAnalyser<MBFImage>, FeatureVectorProvider<DoubleFV>
AvgBrightness.Mode.| Modifier and Type | Class and Description |
|---|---|
static class |
AvgBrightness.Mode
Modes for computing brightness.
|
mask| 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,
FImage mask)
Construct with the given mode and a mask.
|
| Modifier and Type | Method and Description |
|---|---|
void |
analyseImage(MBFImage image)
Analyse an image.
|
double |
getBrightness()
Get the brightness.
|
DoubleFV |
getFeatureVector()
Get the FeatureVector associated with this object.
|
getMask, setMaskpublic AvgBrightness()
public AvgBrightness(AvgBrightness.Mode mode)
mode - the AvgBrightness.Modepublic AvgBrightness(AvgBrightness.Mode mode, FImage mask)
mode - the AvgBrightness.Modemask - the mask.public void analyseImage(MBFImage image)
ImageAnalyseranalyseImage in interface ImageAnalyser<MBFImage>image - The image to process in place.public double getBrightness()
public DoubleFV getFeatureVector()
FeatureVectorProvidergetFeatureVector in interface FeatureVectorProvider<DoubleFV>