Class Resize

java.lang.Object
   |
   +----Resize

public class Resize
extends java.lang.Object

Constructor Index

 o Resize()

Method Index

 o calculatefinalsize(boolean, int, int, double, double)
Calculate the reversable (if necessary) and the final size.
 o computeZoom(ImageAccess, ImageAccess, int, int, int, double, double, double, double, boolean)
Calculate the resize version of the input image.

Constructors

 o Resize
 public Resize()

Methods

 o computeZoom
 public void computeZoom(imageaccess.ImageAccess input,
                         imageaccess.ImageAccess output,
                         int analyDegree,
                         int syntheDegree,
                         int interpDegree,
                         double zoomY,
                         double zoomX,
                         double shiftY,
                         double shiftX,
                         boolean inversable)
Calculate the resize version of the input image.

Parameters:
input - an ImageAccess object to be resized
output - an ImageAccess object which is the resized version of the input
interpDegree - degree of the interpolating spline
analyDegree - degree of the analysis spline
synthedegree - degree of the synthesis spline
zoomY - scaling factor that applies to the columns
zoomX - scaling factor that applies to the rows
shiftY - shift value that applies to the columns
shiftX - shift value that applies to the rows
inversable - boolean that indicates if calculate inversable image or not
 o calculatefinalsize
 public static int[] calculatefinalsize(boolean inversable,
                                        int height,
                                        int width,
                                        double zoomY,
                                        double zoomX)
Calculate the reversable (if necessary) and the final size.

Parameters:
inversable - boolean
height - number of rows
width - number of columns
zoomY - scaling factor for the columns
zoomX - scaling factor for the rows