|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer
at.tuwien.ifs.somtoolbox.visualization.ThematicClassMapVisualizer
public class ThematicClassMapVisualizer
This visualisation colours the map according to the distribution of classes assigned to the data items. Helper
methods are to be found in the package at.tuwien.ifs.somtoolbox.visualization.thematicmap
.
Nested Class Summary | |
---|---|
(package private) class |
ThematicClassMapVisualizer.ClassVisControlPanel
|
Nested classes/interfaces inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer |
---|
AbstractBackgroundImageVisualizer.ContourInterpolationMode, AbstractBackgroundImageVisualizer.ContourMode, AbstractBackgroundImageVisualizer.VisualizationControlPanel |
Field Summary | |
---|---|
(package private) boolean |
chessBoard
|
static String |
CLASSMAP_SHORT_NAME
|
(package private) double |
contrast
|
(package private) double |
gain
|
(package private) double |
gamma
|
private double |
HSVRANGE
|
private double |
maximumMatrixValue
|
(package private) double |
method
|
private static int |
METHOD_ALPHA
|
private static int |
METHOD_BLACK
|
private static int |
METHOD_HSV_MODEL
|
private static int |
METHOD_NO_COMBINATION
|
private static int |
METHOD_WHITE
|
(package private) double |
min_visible_class
|
private double |
minimumMatrixValue
|
protected Hashtable<String,RegionManager> |
regionCache
|
(package private) boolean |
voronoi
|
private int |
zoom
|
Fields inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer |
---|
cache, CACHE_KEY_SECTION_SEPARATOR, CACHE_KEY_SEPARATOR, contourInterpolationMode, contourMode, controlPanel, currentZDimSlice, inputObjects, interpolate, log, map, MAX_CACHE_SIZE_MB, neededInputObjects, NUM_VISUALIZATIONS, numberOfContours, opacity, preferredScaleFactor, VISUALIZATION_DESCRIPTIONS, VISUALIZATION_NAMES, VISUALIZATION_SHORT_NAMES, visualizationUpdateListener, zSize |
Fields inherited from interface at.tuwien.ifs.somtoolbox.visualization.BackgroundImageVisualizer |
---|
DEFAULT_BACKGROUND_VISUALIZATION_SCALE |
Constructor Summary | |
---|---|
ThematicClassMapVisualizer()
|
Method Summary | |
---|---|
private void |
applyColourWeighting(GrowingSOM gsom,
int width,
int height,
BufferedImage res,
Graphics2D g)
|
private int |
clamp(int a,
int min,
int max)
|
BufferedImage |
createVisualization(int index,
GrowingSOM gsom,
int width,
int height)
Creates a visualisation image. |
BufferedImage |
createVisualization(int index,
GrowingSOM gsom,
int width,
int height,
int ClassID)
|
protected String |
getCacheKey(GrowingSOM gsom,
int currentVariant,
int width,
int height)
The key of a cache is created as follows: VisualisationShortName + Hashcode of the SOM + Width + Height + Opacity. Sub-classes might add more information to the cache, if needed. |
private double[][] |
getUmValues(GrowingSOM gsom,
cern.colt.matrix.DoubleMatrix2D matrix,
int width,
int height)
Adapted from AbstractMatrixVisualizer.createImage(GrowingSOM, DoubleMatrix2D, int, int, boolean) .FIXME: check if the two methods can be merged. |
HashMap<String,BufferedImage> |
getVisualizationFlavours(int variantIndex,
GrowingSOM gsom,
int width,
int height)
Default implementation which returns a map of size 1 with the standard, unparameterised visualisation of the given variant. |
HashMap<String,BufferedImage> |
getVisualizationFlavours(int variantIndex,
GrowingSOM gsom,
int width,
int height,
int maxFlavours)
Default implementation equal to AbstractBackgroundImageVisualizer.getVisualizationFlavours(int, GrowingSOM, int, int) . |
HashMap<String,BufferedImage> |
getVisualizationFlavours(int variantIndex,
GrowingSOM gsom,
int width,
int height,
Map<String,String> flavourParameters)
Default implementation equal to AbstractBackgroundImageVisualizer.getVisualizationFlavours(int, GrowingSOM, int, int) . |
boolean |
hasClassInfo()
|
void |
invalidateCache()
Deletes all cached elements from this visualisation. |
void |
setInitialParams(boolean chessBoard,
boolean voronoi,
double minVisibleClass)
|
void |
setZoom(int zoom)
|
void |
update(double val,
double gamma,
double contrast,
double gain,
int method,
boolean voronoi,
boolean chessBoard)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface at.tuwien.ifs.somtoolbox.visualization.BackgroundImageVisualizer |
---|
getControlPanel, getHTMLVisualisationControl, getNumberOfVisualizations, getPreferredScaleFactor, getVisualization, getVisualizationDescription, getVisualizationDescriptions, getVisualizationName, getVisualizationNames, getVisualizationShortName, getVisualizationShortNames, needsAdditionalFiles, setInputObjects, setMap, setSOMData, setVisualizationUpdateListener |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
public static final String CLASSMAP_SHORT_NAME
private static final int METHOD_ALPHA
private static final int METHOD_BLACK
private static final int METHOD_WHITE
private static final int METHOD_NO_COMBINATION
private static final int METHOD_HSV_MODEL
private int zoom
double min_visible_class
double gamma
double contrast
double gain
double method
boolean voronoi
boolean chessBoard
protected Hashtable<String,RegionManager> regionCache
private double minimumMatrixValue
private double maximumMatrixValue
private double HSVRANGE
Constructor Detail |
---|
public ThematicClassMapVisualizer()
Method Detail |
---|
protected String getCacheKey(GrowingSOM gsom, int currentVariant, int width, int height)
AbstractBackgroundImageVisualizer
getCacheKey
in class AbstractBackgroundImageVisualizer
public void setInitialParams(boolean chessBoard, boolean voronoi, double minVisibleClass)
private int clamp(int a, int min, int max)
public BufferedImage createVisualization(int index, GrowingSOM gsom, int width, int height) throws SOMToolboxException
AbstractBackgroundImageVisualizer
createVisualization
in class AbstractBackgroundImageVisualizer
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 pixels.
SOMToolboxException
public BufferedImage createVisualization(int index, GrowingSOM gsom, int width, int height, int ClassID) throws SOMToolboxException
SOMToolboxException
private void applyColourWeighting(GrowingSOM gsom, int width, int height, BufferedImage res, Graphics2D g) throws SOMToolboxException
SOMToolboxException
public void update(double val, double gamma, double contrast, double gain, int method, boolean voronoi, boolean chessBoard)
public boolean hasClassInfo()
private double[][] getUmValues(GrowingSOM gsom, cern.colt.matrix.DoubleMatrix2D matrix, int width, int height)
AbstractMatrixVisualizer.createImage(GrowingSOM, DoubleMatrix2D, int, int, boolean)
.
public void setZoom(int zoom)
public void invalidateCache()
public HashMap<String,BufferedImage> getVisualizationFlavours(int variantIndex, GrowingSOM gsom, int width, int height) throws SOMToolboxException
AbstractBackgroundImageVisualizer
getVisualizationFlavours
in interface BackgroundImageVisualizer
getVisualizationFlavours
in class AbstractBackgroundImageVisualizer
SOMToolboxException
public HashMap<String,BufferedImage> getVisualizationFlavours(int variantIndex, GrowingSOM gsom, int width, int height, int maxFlavours) throws SOMToolboxException
AbstractBackgroundImageVisualizer
AbstractBackgroundImageVisualizer.getVisualizationFlavours(int, GrowingSOM, int, int)
.
getVisualizationFlavours
in interface BackgroundImageVisualizer
getVisualizationFlavours
in class AbstractBackgroundImageVisualizer
SOMToolboxException
public HashMap<String,BufferedImage> getVisualizationFlavours(int variantIndex, GrowingSOM gsom, int width, int height, Map<String,String> flavourParameters) throws SOMToolboxException
AbstractBackgroundImageVisualizer
AbstractBackgroundImageVisualizer.getVisualizationFlavours(int, GrowingSOM, int, int)
.
getVisualizationFlavours
in interface BackgroundImageVisualizer
getVisualizationFlavours
in class AbstractBackgroundImageVisualizer
SOMToolboxException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |