Package com.jhlabs.image
Class WarpGrid
java.lang.Object
com.jhlabs.image.WarpGrid
- All Implemented Interfaces:
Serializable
A warp grid.
From "A simplified approach to Image Processing" by Randy Crane
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCol
(int before) Add a new column to the grid.void
addRow
(int before) Add a new row to the grid.protected void
interpolateSpline
(float[] xKnots, float[] yKnots, int offset, int length, float[] splineY, int splineOffset, int splineLength) protected void
interpolateSpline2
(float[] xKnots, float[] yKnots, int offset, float[] splineY, int splineOffset, int splineLength) void
void
removeCol
(int r) Remove a column from the grid.void
removeRow
(int r) Remove a row from the grid.void
-
Field Details
-
xGrid
public float[] xGrid -
yGrid
public float[] yGrid -
rows
public int rows -
cols
public int cols
-
-
Constructor Details
-
WarpGrid
public WarpGrid(int rows, int cols, int w, int h)
-
-
Method Details
-
addRow
public void addRow(int before) Add a new row to the grid. "before" must be in the range 1..rows-1. i.e. you can only add rows inside the grid. -
addCol
public void addCol(int before) Add a new column to the grid. "before" must be in the range 1..cols-1. i.e. you can only add columns inside the grid. -
removeRow
public void removeRow(int r) Remove a row from the grid. -
removeCol
public void removeCol(int r) Remove a column from the grid. -
lerp
-
warp
-
interpolateSpline
protected void interpolateSpline(float[] xKnots, float[] yKnots, int offset, int length, float[] splineY, int splineOffset, int splineLength) -
interpolateSpline2
protected void interpolateSpline2(float[] xKnots, float[] yKnots, int offset, float[] splineY, int splineOffset, int splineLength)
-