code: public void resizeStitchImage( int widthStitch, int heightStitch , IT newToOldStitch ) {
  
  		// copy the old image into the new one
  		workImage.reshape(widthStitch,heightStitch);
  		GImageMiscOps.fill(workImage, 0);
  		if( newToOldStitch != null ) {
  			PixelTransform<Point2D_F32> newToOld = converter.convertPixel(newToOldStitch,null);
  			distorter.setModel(newToOld);
  			distorter.apply(stitchedImage, workImage);
  
  			// update the transforms
  			IT tmp = (IT)worldToCurr.createInstance();
  			newToOldStitch.concat(worldToInit, tmp);
  			worldToInit.set(tmp);
  
  			computeCurrToInit_PixelTran();
  		} else {
  			int overlapWidth = Math.min(widthStitch,stitchedImage.width);
  			int overlapHeight = Math.min(heightStitch,stitchedImage.height);
  			GImageMiscOps.copy(0,0,0,0,overlapWidth,overlapHeight,stitchedImage,workImage);
  		}
  		stitchedImage.reshape(widthStitch,heightStitch);
  		I tmp = stitchedImage;
  		stitchedImage = workImage;
  		workImage = tmp;
  
  		this.widthStitch = widthStitch;
  		this.heightStitch = heightStitch;
  	}
docs: Resizes the stitch image.  If no transform is provided then the old stitch region is simply
  places on top of the new one and copied.  Pixels which do not exist in the old image are filled with zero.
  
  @param widthStitch The new width of the stitch image.
  @param heightStitch The new height of the stitch image.
  @param newToOldStitch (Optional) Transform from new stitch image pixels to old stick pixels.  Can be null.