mpicbg.imagefeatures
Class Filter

java.lang.Object
  extended by mpicbg.imagefeatures.Filter

public class Filter
extends Object

Version:
0.2b
Author:
Stephan Saalfeld

Constructor Summary
Filter()
           
 
Method Summary
static FloatArray2D convolveSeparable(FloatArray2D input, float[] h, float[] v)
          Convolve an image with a horizontal and a vertical kernel simple straightforward, not optimized---replace this with a trusted better version soon
static double[] createGaussianKernel(double sigma, boolean normalize)
          Create a 1d-Gaussian kernel of appropriate size.
static float[] createGaussianKernel(float sigma, boolean normalize)
          Create a 1d-Gaussian kernel of appropriate size.
static FloatArray2D createGaussianKernelOffset(double sigma, double offset_x, double offset_y, boolean normalize)
          Create a normalized 2d gaussian impulse with appropriate size with its center slightly moved away from the middle.
static FloatArray2D createGaussianKernelOffset(float sigma, float offset_x, float offset_y, boolean normalize)
          Create a normalized 2d gaussian impulse with appropriate size with its center slightly moved away from the middle.
static FloatArray2D[] createGradients(FloatArray2D array)
           
static void enhance(FloatArray2D src, float scale)
          In place enhance all values of a FloatArray to fill the given range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter

public Filter()
Method Detail

createGaussianKernel

public static final double[] createGaussianKernel(double sigma,
                                                  boolean normalize)
Create a 1d-Gaussian kernel of appropriate size.

Parameters:
sigma - Standard deviation of the Gaussian kernel
normalize - Normalize integral of the Gaussian kernel to 1 or not...
Returns:
float[] Gaussian kernel of appropriate size

createGaussianKernel

public static final float[] createGaussianKernel(float sigma,
                                                 boolean normalize)
Create a 1d-Gaussian kernel of appropriate size.

Parameters:
sigma - Standard deviation of the Gaussian kernel
normalize - Normalize integral of the Gaussian kernel to 1 or not...
Returns:
float[] Gaussian kernel of appropriate size

createGaussianKernelOffset

public static final FloatArray2D createGaussianKernelOffset(float sigma,
                                                            float offset_x,
                                                            float offset_y,
                                                            boolean normalize)
Create a normalized 2d gaussian impulse with appropriate size with its center slightly moved away from the middle.


createGaussianKernelOffset

public static final FloatArray2D createGaussianKernelOffset(double sigma,
                                                            double offset_x,
                                                            double offset_y,
                                                            boolean normalize)
Create a normalized 2d gaussian impulse with appropriate size with its center slightly moved away from the middle.


createGradients

public static final FloatArray2D[] createGradients(FloatArray2D array)

enhance

public static final void enhance(FloatArray2D src,
                                 float scale)
In place enhance all values of a FloatArray to fill the given range.

Parameters:
src - source
scale - defines the range

convolveSeparable

public static final FloatArray2D convolveSeparable(FloatArray2D input,
                                                   float[] h,
                                                   float[] v)
Convolve an image with a horizontal and a vertical kernel simple straightforward, not optimized---replace this with a trusted better version soon

Parameters:
input - the input image
h - horizontal kernel
v - vertical kernel
Returns:
convolved image


Copyright © 2007-2016 Fiji. All Rights Reserved.