类 WarpGrid
- java.lang.Object
-
- org.meteoinfo.image.filter.WarpGrid
-
public class WarpGrid extends java.lang.ObjectA warp grid. From "A simplified approach to Image Processing" by Randy Crane
-
-
构造器概要
构造器 构造器 说明 WarpGrid(int rows, int cols, int w, int h)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddCol(int before)Add a new column to the grid.voidaddRow(int before)Add a new row to the grid.protected voidinterpolateSpline(float[] xKnots, float[] yKnots, int offset, int length, float[] splineY, int splineOffset, int splineLength)protected voidinterpolateSpline2(float[] xKnots, float[] yKnots, int offset, float[] splineY, int splineOffset, int splineLength)voidlerp(float t, WarpGrid destination, WarpGrid intermediate)voidremoveCol(int r)Remove a column from the grid.voidremoveRow(int r)Remove a row from the grid.voidwarp(int[] inPixels, int cols, int rows, WarpGrid sourceGrid, WarpGrid destGrid, int[] outPixels)
-
-
-
方法详细资料
-
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.
-
warp
public void warp(int[] inPixels, int cols, int rows, WarpGrid sourceGrid, WarpGrid destGrid, int[] outPixels)
-
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)
-
-