|
ImageScience 3.0.0 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectimagescience.transform.Prefilter
public class Prefilter
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 |
---|
public Prefilter()
Method Detail |
---|
public void bspline3(double[] array, int border)
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.
java.lang.ArrayIndexOutOfBoundsException
- If border
is less than 0
.
java.lang.NullPointerException
- If array
is null
.public Image bspline3(Image image, Axes axes, Borders borders)
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.
FloatImage
.
java.lang.NullPointerException
- If any of the parameters is null
.public void omoms3(double[] array, int border)
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.
java.lang.ArrayIndexOutOfBoundsException
- If border
is less than 0
.
java.lang.NullPointerException
- If array
is null
.public Image omoms3(Image image, Axes axes, Borders borders)
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.
FloatImage
.
java.lang.NullPointerException
- If any of the parameters is null
.public void bspline5(double[] array, int border)
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.
java.lang.ArrayIndexOutOfBoundsException
- If border
is less than 0
.
java.lang.NullPointerException
- If array
is null
.public Image bspline5(Image image, Axes axes, Borders borders)
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.
FloatImage
.
java.lang.NullPointerException
- If any of the parameters is null
.
|
ImageScience 3.0.0 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.