ImageScience 3.0.0

imagescience.transform
Class Prefilter

java.lang.Object
  extended by imagescience.transform.Prefilter

public class Prefilter
extends java.lang.Object

Prefilters an array or image for different interpolation schemes.


Constructor Summary
Prefilter()
          Default constructor.
 
Method Summary
 void bspline3(double[] array, int border)
          Applies cubic B-spline prefiltering to an array.
 Image bspline3(Image image, Axes axes, Borders borders)
          Applies cubic B-spline prefiltering to an image.
 void bspline5(double[] array, int border)
          Applies quintic B-spline prefiltering to an array.
 Image bspline5(Image image, Axes axes, Borders borders)
          Applies quintic B-spline prefiltering to an image.
 void omoms3(double[] array, int border)
          Applies cubic O-MOMS prefiltering to an array.
 Image omoms3(Image image, Axes axes, Borders borders)
          Applies cubic O-MOMS prefiltering to an image.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Prefilter

public Prefilter()
Default constructor.

Method Detail

bspline3

public void bspline3(double[] array,
                     int border)
Applies cubic B-spline prefiltering to an array.

Parameters:
array - The array to be prefiltered. The array contents will be replaced by the result of the prefiltering.
border - The size of the borders at the beginning and end of the array. The borders are ignored in the prefiltering.
Throws:
java.lang.ArrayIndexOutOfBoundsException - If border is less than 0.
java.lang.NullPointerException - If array is null.

bspline3

public Image bspline3(Image image,
                      Axes axes,
                      Borders borders)
Applies cubic B-spline prefiltering to an image.

Parameters:
image - The image to be prefiltered. If the image is of type FloatImage, it is overwritten with the prefiltering results and returned. Otherwise it is left unaltered.
axes - The axes along which prefiltering is applied. The image is prefiltered in each dimension for which the corresponding boolean field of this parameter is true.
borders - The size of the borders at the beginning and end of the image in each dimension. These borders are ignored in the prefiltering.
Returns:
A prefiltered version of the input image. The returned image is always of type FloatImage.
Throws:
java.lang.NullPointerException - If any of the parameters is null.

omoms3

public void omoms3(double[] array,
                   int border)
Applies cubic O-MOMS prefiltering to an array.

Parameters:
array - The array to be prefiltered. The array contents will be replaced by the result of the prefiltering.
border - The size of the borders at the beginning and end of the array. The borders are ignored in the prefiltering.
Throws:
java.lang.ArrayIndexOutOfBoundsException - If border is less than 0.
java.lang.NullPointerException - If array is null.

omoms3

public Image omoms3(Image image,
                    Axes axes,
                    Borders borders)
Applies cubic O-MOMS prefiltering to an image.

Parameters:
image - The image to be prefiltered. If the image is of type FloatImage, it is overwritten with the prefiltering results and returned. Otherwise it is left unaltered.
axes - The axes along which prefiltering is applied. The image is prefiltered in each dimension for which the corresponding boolean field of this parameter is true.
borders - The size of the borders at the beginning and end of the image in each dimension. These borders are ignored in the prefiltering.
Returns:
A prefiltered version of the input image. The returned image is always of type FloatImage.
Throws:
java.lang.NullPointerException - If any of the parameters is null.

bspline5

public void bspline5(double[] array,
                     int border)
Applies quintic B-spline prefiltering to an array.

Parameters:
array - The array to be prefiltered. The array contents will be replaced by the result of the prefiltering.
border - The size of the borders at the beginning and end of the array. The borders are ignored in the prefiltering.
Throws:
java.lang.ArrayIndexOutOfBoundsException - If border is less than 0.
java.lang.NullPointerException - If array is null.

bspline5

public Image bspline5(Image image,
                      Axes axes,
                      Borders borders)
Applies quintic B-spline prefiltering to an image.

Parameters:
image - The image to be prefiltered. If the image is of type FloatImage, it is overwritten with the prefiltering results and returned. Otherwise it is left unaltered.
axes - The axes along which prefiltering is applied. The image is prefiltered in each dimension for which the corresponding boolean field of this parameter is true.
borders - The size of the borders at the beginning and end of the image in each dimension. These borders are ignored in the prefiltering.
Returns:
A prefiltered version of the input image. The returned image is always of type FloatImage.
Throws:
java.lang.NullPointerException - If any of the parameters is null.

ImageScience 3.0.0

Copyright (C) Erik Meijering. Permission to use this software and corresponding documentation for educational, research, and not-for-profit purposes, without a fee and without a signed licensing agreement, is granted, subject to the following terms and conditions.

IT IS NOT ALLOWED TO REDISTRIBUTE, SELL, OR LEASE THIS SOFTWARE, OR DERIVATIVE WORKS THEREOF, WITHOUT PERMISSION IN WRITING FROM THE COPYRIGHT HOLDER. THE COPYRIGHT HOLDER IS FREE TO MAKE VERSIONS OF THE SOFTWARE AVAILABLE FOR A FEE OR COMMERCIALLY ONLY.

IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OF ANY KIND WHATSOEVER, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.

THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE EXPRESS OR IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND CORRESPONDING DOCUMENTATION IS PROVIDED "AS IS". THE COPYRIGHT HOLDER HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.