FlowJ
Class FlowJMapper
java.lang.Object
|
+--FlowJ.FlowJMapper
- Direct Known Subclasses:
- Flow3JColorNoiseMapper, Flow3JDynamicColorMapper, FlowJColorNoiseMapper, FlowJDynamicColorMapper, FlowJQuiverMapper, FlowJSpotNoiseMapper
- public class FlowJMapper
- extends java.lang.Object
This class is the superclass for the OF display mappers.
Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.
Field Summary |
protected int |
axes
|
protected float[][][] |
flow
|
protected ij.process.ImageProcessor |
impr
|
protected int |
maxp
|
protected int |
maxq
|
protected java.lang.Object |
pixels
|
protected float |
pScaling
|
protected float |
qScaling
|
protected float |
rho
|
Constructor Summary |
FlowJMapper()
|
FlowJMapper(ij.process.ImageProcessor impr,
float[][][] flow,
int axes,
int maxp,
int maxq,
float pScaling,
float qScaling,
float rho)
|
Method Summary |
static float[] |
bl(float[][][] v,
int x,
int y,
float dx,
float dy)
This is a HACK and should not be here. |
void |
pixel(int ip,
int iq,
int ix,
int iy,
float dx,
float dy)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
impr
protected ij.process.ImageProcessor impr
pixels
protected java.lang.Object pixels
flow
protected float[][][] flow
axes
protected int axes
maxp
protected int maxp
maxq
protected int maxq
pScaling
protected float pScaling
qScaling
protected float qScaling
rho
protected float rho
FlowJMapper
public FlowJMapper()
FlowJMapper
public FlowJMapper(ij.process.ImageProcessor impr,
float[][][] flow,
int axes,
int maxp,
int maxq,
float pScaling,
float qScaling,
float rho)
pixel
public void pixel(int ip,
int iq,
int ix,
int iy,
float dx,
float dy)
bl
public static float[] bl(float[][][] v,
int x,
int y,
float dx,
float dy)
- This is a HACK and should not be here.
Bilinear interpolation of 2D or 3D-vector organised as float[][][].
- Parameters:
v
- the 2-D matrix or 3-D volume to be interpolated.x
- the integer x position at which to interpolate.y
- the integer x position at which to interpolate.dx
- the x-weight to use for interpolation.dy
- the y-weight to use for interpolation.- Returns:
- a vector with the interpolated x and y values.
Submit a bug or feature
Copyright (c) 1997-2003 Michael Abramoff
Licensing available. All Rights Reserved.