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, setMask
public AvgBrightness()
public AvgBrightness(AvgBrightness.Mode mode)
mode
- the AvgBrightness.Mode
public AvgBrightness(AvgBrightness.Mode mode, FImage mask)
mode
- the AvgBrightness.Mode
mask
- the mask.public void analyseImage(MBFImage image)
ImageAnalyser
analyseImage
in interface ImageAnalyser<MBFImage>
image
- The image to process in place.public double getBrightness()
public DoubleFV getFeatureVector()
FeatureVectorProvider
getFeatureVector
in interface FeatureVectorProvider<DoubleFV>