public class SearchResultHistogramVisualizer extends AbstractMatrixVisualizer
AbstractBackgroundImageVisualizer.ContourInterpolationMode, AbstractBackgroundImageVisualizer.ContourMode, AbstractBackgroundImageVisualizer.VisualizationControlPanel
Modifier and Type | Field and Description |
---|---|
private int[][] |
searchResultHistogram |
maximumMatrixValue, minimumMatrixValue, palette
cache, CACHE_KEY_SEPARATOR, contourInterpolationMode, contourMode, controlPanel, currentZDimSlice, inputObjects, log, map, MAX_CACHE_SIZE_MB, neededInputObjects, NUM_VISUALIZATIONS, numberOfContours, opacity, preferredScaleFactor, VISUALIZATION_DESCRIPTIONS, VISUALIZATION_NAMES, VISUALIZATION_SHORT_NAMES, visualizationUpdateListener, zSize
CACHE_KEY_SECTION_SEPARATOR, DEFAULT_BACKGROUND_VISUALIZATION_SCALE
Constructor and Description |
---|
SearchResultHistogramVisualizer(int[][] searchResult) |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
createVisualization(int variantIndex,
GrowingSOM gsom,
int width,
int height)
Creates a visualisation image.
|
BufferedImage |
getVisualization(int index,
GrowingSOM gsom,
int width,
int height)
overriding the method in the superclass as we have a different cache key, and to set the min & max matrix values
to -1
|
computeHitHistogram, computeSpline, constrainWithinPalette, createImage, drawContour, getCurrentPalette, getMaximumMatrixValue, getMinimumMatrixValue, getPalette, getPreferredPaletteName, getVisualisationSpecificCacheKey, invalidateCache, isInterpolate, reversePalette, setDefaultInterpolate, setInterpolate, setPalette
buildCacheKey, checkNeededObjectsAvailable, checkVariantIndex, clearVisualisationCache, compareTo, createVisualization, drawBackground, escapeFileName, getCache, getCacheKey, getControlPanel, getDefaultVisualisationFileName, getDefaultVisualisationFileName, getHTMLVisualisationControl, getNumberOfVisualizations, getPreferredScaleFactor, getVariantException, getVisualizationDescription, getVisualizationDescriptions, getVisualizationFlavours, getVisualizationFlavours, getVisualizationFlavours, getVisualizationName, getVisualizationNames, getVisualizationShortName, getVisualizationShortNames, invalidateCache, logImageCache, needsAdditionalFiles, setInputObjects, setMap, setSOMData, setVisualizationUpdateListener
public SearchResultHistogramVisualizer(int[][] searchResult)
public BufferedImage createVisualization(int variantIndex, GrowingSOM gsom, int width, int height) throws SOMToolboxException
AbstractBackgroundImageVisualizer
createVisualization
in class AbstractBackgroundImageVisualizer
variantIndex
- the index of the variant to usegsom
- the GrowingSOM to take build the visualisation forwidth
- the desired width of the image, in pixelsheight
- the desired height of the image, in pixels.SOMToolboxException
public BufferedImage getVisualization(int index, GrowingSOM gsom, int width, int height) throws SOMToolboxException
AbstractMatrixVisualizer
getVisualization
in interface BackgroundImageVisualizer
getVisualization
in class AbstractMatrixVisualizer
index
- the index of the variant to usegsom
- the GrowingSOM to take build the visualisation forwidth
- the desired width of the image, in pixelsheight
- the desired height of the image, in pixelsSOMToolboxException
- If there was an error creating the visualisationBackgroundImageVisualizer.getVisualization(int,
at.tuwien.ifs.somtoolbox.models.GrowingSOM, int, int)