|
JIU 0.14.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jiu.ops.Operation
net.sourceforge.jiu.color.analysis.Histogram3DCreator
public class Histogram3DCreator
This class creates three-dimensional histograms for images with integer samples.
Only IntegerImage
is supported.
Existing histogram objects can be given to this operation to be reused.
Note: Before JIU 0.10.0 there was a single HistogramCreator class.
Constructor Summary | |
---|---|
Histogram3DCreator()
|
Method Summary | |
---|---|
static Integer |
count(IntegerImage image)
Static convenience method to count the number of colors in any three channel IntegerImage object. |
Histogram3D |
getHistogram()
Returns the histogram initialized in this operation. |
void |
process()
This method does the actual work of the operation. |
void |
setHistogram3D(Histogram3D histogram)
Sets the histogram object to be reused for this operation. |
void |
setImage(IntegerImage newImage)
The image for which a histogram will be initialized. |
void |
setImage(IntegerImage newImage,
int channelIndex1,
int channelIndex2,
int channelIndex3)
The image for which a histogram will be initialized. |
Methods inherited from class net.sourceforge.jiu.ops.Operation |
---|
addProgressListener, addProgressListeners, getAbort, removeProgressListener, setAbort, setProgress, setProgress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Histogram3DCreator()
Method Detail |
---|
public static Integer count(IntegerImage image)
IntegerImage
object.
image
- the IntegerImage whose number of used colors is to be determined
public Histogram3D getHistogram()
public void process() throws MissingParameterException, WrongParameterException
Operation
process
in class Operation
MissingParameterException
- if any mandatory parameter was not given to the operation
WrongParameterException
- if at least one of the input parameters was
not initialized appropriately (values out of the valid interval, etc.)public void setHistogram3D(Histogram3D histogram)
histogram
- the histogram object to be used in this operationpublic void setImage(IntegerImage newImage)
setImage(IntegerImage, int, int, int)
with 0, 1 and 2 as parameters.
newImage
- the image for the histogram initializationpublic void setImage(IntegerImage newImage, int channelIndex1, int channelIndex2, int channelIndex3)
setImage(IntegerImage, int, int, int)
with 0, 1 and 2 as parameters.
newImage
-
|
JIU 0.14.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |