mpicbg.ij.util
Class Util

java.lang.Object
  extended by mpicbg.ij.util.Util

public class Util
extends Object


Method Summary
static void colorCircle(ColorProcessor ip)
          Draw a color circle into a ColorProcessor.
static int colorVector(double xs, double ys)
          Generate an integer encoded 24bit RGB color that encodes a 2d vector with amplitude being intensity and color being orientation.
static Color createSaturatedColor(float i, float interval)
          Create a saturated color in a periodic interval
static void fillWithNaN(FloatProcessor fp)
           
static void fillWithNoise(ByteProcessor bp)
           
static void fillWithNoise(FloatProcessor fp)
           
static void normalizeContrast(FloatProcessor fp)
          Normalize the dynamic range of a FloatProcessor to the interval [0,1].
static List<PointMatch> pointRoisToPointMatches(PointRoi sourceRoi, PointRoi targetRoi)
           
static List<Point> pointRoiToPoints(PointRoi roi)
           
static PointRoi pointsToPointRoi(Collection<? extends Point> points)
          Create an ImageJ PointRoi from a Collection of Points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

pointsToPointRoi

public static final PointRoi pointsToPointRoi(Collection<? extends Point> points)
Create an ImageJ PointRoi from a Collection of Points. Since ImageJ 1.46a, PointRois have sub-pixel coordinates.

Parameters:
points -
Returns:

pointRoiToPoints

public static final List<Point> pointRoiToPoints(PointRoi roi)

pointRoisToPointMatches

public static final List<PointMatch> pointRoisToPointMatches(PointRoi sourceRoi,
                                                             PointRoi targetRoi)

fillWithNoise

public static final void fillWithNoise(ByteProcessor bp)

fillWithNoise

public static final void fillWithNoise(FloatProcessor fp)

fillWithNaN

public static final void fillWithNaN(FloatProcessor fp)

normalizeContrast

public static final void normalizeContrast(FloatProcessor fp)
Normalize the dynamic range of a FloatProcessor to the interval [0,1].

Parameters:
fp -
scale -

createSaturatedColor

public static final Color createSaturatedColor(float i,
                                               float interval)
Create a saturated color in a periodic interval

Parameters:
i -
interval -
Returns:

colorVector

public static final int colorVector(double xs,
                                    double ys)
Generate an integer encoded 24bit RGB color that encodes a 2d vector with amplitude being intensity and color being orientation. Only amplitudes in [0,1] will render into useful colors, so the vector should be normalized to an expected max amplitude.

Parameters:
xs -
ys -
Returns:

colorCircle

public static final void colorCircle(ColorProcessor ip)
Draw a color circle into a ColorProcessor.

Parameters:
ip -


Copyright © 2007-2016 Fiji. All Rights Reserved.