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) ArrayDBIDs
ids
The database IDs used(package private) java.awt.image.RenderedImage
img
Our image(package private) java.io.File
imgfile
The file we have written the image toprivate static java.lang.String
IMGFILEPREFIX
Prefix for filenames(package private) Relation<?>
relation
The 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.File
getAsFile()
Get the image result as file (usually a temporary file).ArrayDBIDs
getIDs()
Get the IDsjava.awt.image.RenderedImage
getImage()
Get the image pixmapjava.lang.String
getLongName()
Relation<?>
getRelation()
Get the relationjava.lang.String
getShortName()
-
-
-
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:PixmapResult
Get the image pixmap- Specified by:
getImage
in interfacePixmapResult
- Returns:
- the image pixmap
-
getAsFile
public java.io.File getAsFile()
Description copied from interface:PixmapResult
Get the image result as file (usually a temporary file).- Specified by:
getAsFile
in 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()
-
-