/** Add the last parameter - warp positions * */
gridParameters.setWarpPositions(getWarpPositions());
/** Use provider and values to get proper transformation * */
WarpGridTransform2D wt = (WarpGridTransform2D) (new WarpGridTransform2D.Provider())
.createMathTransform(gridParameters.getWarpGridParameters());
wt.setWorldtoGridTransform(this.worldToGrid);
MathTransform trans = null;
try {
trans = ConcatenatedTransform.create(ConcatenatedTransform.create(