Package elki.evaluation.similaritymatrix
Class ComputeSimilarityMatrixImage.SimilarityMatrix
- java.lang.Object
-
- elki.evaluation.similaritymatrix.ComputeSimilarityMatrixImage.SimilarityMatrix
-
- All Implemented Interfaces:
PixmapResult
- Enclosing class:
- ComputeSimilarityMatrixImage<O>
public static class ComputeSimilarityMatrixImage.SimilarityMatrix extends java.lang.Object implements PixmapResult
Similarity matrix image.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ArrayDBIDsidsThe database IDs used(package private) java.awt.image.RenderedImageimgOur image(package private) java.io.FileimgfileThe file we have written the image toprivate static java.lang.StringIMGFILEPREFIXPrefix for filenames(package private) Relation<?>relationThe database
-
Constructor Summary
Constructors Constructor Description SimilarityMatrix(java.awt.image.RenderedImage img, Relation<?> relation, ArrayDBIDs ids)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetAsFile()Get the image result as file (usually a temporary file).ArrayDBIDsgetIDs()Get the IDsjava.awt.image.RenderedImagegetImage()Get the image pixmapjava.lang.StringgetLongName()Relation<?>getRelation()Get the relationjava.lang.StringgetShortName()
-
-
-
Field Detail
-
IMGFILEPREFIX
private static final java.lang.String IMGFILEPREFIX
Prefix for filenames- See Also:
- Constant Field Values
-
relation
Relation<?> relation
The database
-
ids
ArrayDBIDs ids
The database IDs used
-
img
java.awt.image.RenderedImage img
Our image
-
imgfile
java.io.File imgfile
The file we have written the image to
-
-
Constructor Detail
-
SimilarityMatrix
public SimilarityMatrix(java.awt.image.RenderedImage img, Relation<?> relation, ArrayDBIDs ids)Constructor- Parameters:
img- Image data
-
-
Method Detail
-
getImage
public java.awt.image.RenderedImage getImage()
Description copied from interface:PixmapResultGet the image pixmap- Specified by:
getImagein interfacePixmapResult- Returns:
- the image pixmap
-
getAsFile
public java.io.File getAsFile()
Description copied from interface:PixmapResultGet the image result as file (usually a temporary file).- Specified by:
getAsFilein interfacePixmapResult- Returns:
- Image file
-
getRelation
public Relation<?> getRelation()
Get the relation- Returns:
- the relation
-
getIDs
public ArrayDBIDs getIDs()
Get the IDs- Returns:
- the ids
-
getLongName
public java.lang.String getLongName()
-
getShortName
public java.lang.String getShortName()
-
-