BIJ API

FlowJ
Class FlowJDynamicColor

java.lang.Object
  |
  +--FlowJ.FlowJDynamicColor

public class FlowJDynamicColor
extends java.lang.Object

This is a class that implements 2D and 3D Dynamic Color Mapping. Dynamic Color Mapping maps flow fields to a 6 basis-color-space with 3 axes. one axis is blue-yellow, another red-green and the third white-black. 3D vectors (speed-orientationxy-orientationz) are mapped to a point on these three axes. with hue and value (intensity) coding for orientation in x,y,z and saturation coding for speed. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.


Constructor Summary
FlowJDynamicColor()
           
 
Method Summary
static void hue(float[] rgb, float orientation)
          Transform the 2D orientation of a vector into a hue (in float rgb format [0-1.0]).
static void map(byte[] rgb, float magnitude, float orientationxy, float orientationz)
          This method maps a polar 3d vector with orientations and speed (0-1) to a dynamic color in rgb.
static java.awt.Color map(float speed, float orientationxy, float orientationz)
           
static void map2D(byte[] rgb, float magnitude, float orientationxy)
          This method maps a polar 2d vector with orientation and magnitude (0-1) to a dynamic color in rgb.
static void map3D(byte[] rgb, float magnitude, float orientationxy, float orientationz)
          Transform a polar 3D vector (orientationxy in the xy-plane, orientationz along the z axis and normalized magnitude (0-1)), to a dynamic color in rgb (0-255), with hue standing for orientationxy, intensity standing for orientationz and saturation standing for magnitude.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowJDynamicColor

public FlowJDynamicColor()
Method Detail

map2D

public static void map2D(byte[] rgb,
                         float magnitude,
                         float orientationxy)
This method maps a polar 2d vector with orientation and magnitude (0-1) to a dynamic color in rgb.

map

public static void map(byte[] rgb,
                       float magnitude,
                       float orientationxy,
                       float orientationz)
This method maps a polar 3d vector with orientations and speed (0-1) to a dynamic color in rgb.

map

public static java.awt.Color map(float speed,
                                 float orientationxy,
                                 float orientationz)

map3D

public static void map3D(byte[] rgb,
                         float magnitude,
                         float orientationxy,
                         float orientationz)
Transform a polar 3D vector (orientationxy in the xy-plane, orientationz along the z axis and normalized magnitude (0-1)), to a dynamic color in rgb (0-255), with hue standing for orientationxy, intensity standing for orientationz and saturation standing for magnitude. Limits magnitude.

hue

public static void hue(float[] rgb,
                       float orientation)
Transform the 2D orientation of a vector into a hue (in float rgb format [0-1.0]). This is the central routine of dynamic color mapping.

BIJ API

Submit a bug or feature

Copyright (c) 1997-2003 Michael Abramoff
Licensing available. All Rights Reserved.