Package edu.gsu.cs.dmlab.imageproc
Class HistogramProducer
- java.lang.Object
-
- edu.gsu.cs.dmlab.imageproc.HistogramProducer
-
- All Implemented Interfaces:
ISTHistogramProducer
public class HistogramProducer extends Object implements ISTHistogramProducer
HistogramProducer produces a 15 bin histogram for a passed in object detection for each of the passed in image parameter/wavelength pairs. From Kempton et. al. 2015.- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description HistogramProducer(ISTImageDBConnection imageDB)
Constructor that takes in a connection to the image database.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
int[][]
getHist(ISpatialTemporalObj event, ImageDBWaveParamPair[] dims, boolean left)
Computes the histogram of the passed in IEvent using the requested dimensions of the underlying data souce.
-
-
-
Constructor Detail
-
HistogramProducer
public HistogramProducer(ISTImageDBConnection imageDB)
Constructor that takes in a connection to the image database.- Parameters:
imageDB
- The image database connection used to pull the image data from the database.
-
-
Method Detail
-
finalize
public void finalize() throws Throwable
-
getHist
public int[][] getHist(ISpatialTemporalObj event, ImageDBWaveParamPair[] dims, boolean left)
Description copied from interface:ISTHistogramProducer
Computes the histogram of the passed in IEvent using the requested dimensions of the underlying data souce.- Specified by:
getHist
in interfaceISTHistogramProducer
- Parameters:
event
- The event to extract a histogram of.dims
- The dimensions to use of the underlying data source.left
- Indicates if the event is on the left side of a gap in detections. If true the histogram is extracted from the frame at the end of the event's valid time. Otherwise it is extracted from the frame at the beginning of the passed in event's valid time.- Returns:
- The histogram that represents the passed in event.
-
-