databionics.esom.renderer
Class RendererTools

java.lang.Object
  extended by databionics.esom.renderer.RendererTools

public class RendererTools
extends java.lang.Object

Author:
mario, stammi, mart

Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
RendererTools()
           
 
Method Summary
static void clipMatrix(boolean clipping, double clip, cern.colt.matrix.DoubleMatrix2D matrix, cern.colt.matrix.DoubleMatrix2D targetMatrix)
          Clip a Height matrix
static java.awt.image.BufferedImage colorizeAreasOnImage(float alpha, int zoom, int rows, int columns, ClsFile classmask, java.awt.image.BufferedImage bgImage)
           
static java.awt.image.BufferedImage colorizeImageWithMatrix2(float alpha, int zoom, java.awt.image.BufferedImage bgImage, cern.colt.matrix.DoubleMatrix2D colorMatrix)
           
static int coordinates2index(int row, int col, int columns)
          Convert row/column coordinates on grid to unique index
static cern.colt.matrix.DoubleMatrix2D createIslandOverlapMatrix(cern.colt.matrix.DoubleMatrix2D eyelandMatrix)
           
static void drawEyeland(int zoom, cern.colt.matrix.DoubleMatrix2D eyelandMatrix, java.awt.image.BufferedImage image)
           
static void drawEyelandOverlapMatrix(int zoom, cern.colt.matrix.DoubleMatrix2D eyelandMatrix, java.awt.image.BufferedImage image)
           
static boolean isZoomedByFromTo(int zoom, cern.colt.matrix.DoubleMatrix2D from, cern.colt.matrix.DoubleMatrix2D to)
           
static cern.colt.matrix.DoubleMatrix2D zoomColorMatrix(int zoom, cern.colt.matrix.DoubleMatrix2D matrix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

RendererTools

public RendererTools()
Method Detail

colorizeImageWithMatrix2

public static java.awt.image.BufferedImage colorizeImageWithMatrix2(float alpha,
                                                                    int zoom,
                                                                    java.awt.image.BufferedImage bgImage,
                                                                    cern.colt.matrix.DoubleMatrix2D colorMatrix)

colorizeAreasOnImage

public static java.awt.image.BufferedImage colorizeAreasOnImage(float alpha,
                                                                int zoom,
                                                                int rows,
                                                                int columns,
                                                                ClsFile classmask,
                                                                java.awt.image.BufferedImage bgImage)
Parameters:
bgImage -
colorMatrix -
renderer -

clipMatrix

public static void clipMatrix(boolean clipping,
                              double clip,
                              cern.colt.matrix.DoubleMatrix2D matrix,
                              cern.colt.matrix.DoubleMatrix2D targetMatrix)
Clip a Height matrix

Parameters:
clipping - function will only take effect if true
clip - hast to be between 1 and 0 otherwise function has no effect
matrix - the matrix to be clipped. Wont be changed
targetMatrix - the matrix which will contain the result

zoomColorMatrix

public static cern.colt.matrix.DoubleMatrix2D zoomColorMatrix(int zoom,
                                                              cern.colt.matrix.DoubleMatrix2D matrix)
Parameters:
zoom -
matrix -
targetMatrix -
Returns:

drawEyeland

public static void drawEyeland(int zoom,
                               cern.colt.matrix.DoubleMatrix2D eyelandMatrix,
                               java.awt.image.BufferedImage image)

createIslandOverlapMatrix

public static cern.colt.matrix.DoubleMatrix2D createIslandOverlapMatrix(cern.colt.matrix.DoubleMatrix2D eyelandMatrix)

drawEyelandOverlapMatrix

public static void drawEyelandOverlapMatrix(int zoom,
                                            cern.colt.matrix.DoubleMatrix2D eyelandMatrix,
                                            java.awt.image.BufferedImage image)

coordinates2index

public static int coordinates2index(int row,
                                    int col,
                                    int columns)
Convert row/column coordinates on grid to unique index

Parameters:
row - row number on grid
col - column number on grid
columns - number of columns in grid
Returns:
unique index of neuron

isZoomedByFromTo

public static boolean isZoomedByFromTo(int zoom,
                                       cern.colt.matrix.DoubleMatrix2D from,
                                       cern.colt.matrix.DoubleMatrix2D to)


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.