code: protected void resizeForLayer( int width , int height ) {
  		deriv1X.reshape(width,height);
  		deriv1Y.reshape(width,height);
  		deriv2X.reshape(width,height);
  		deriv2Y.reshape(width,height);
  		deriv2XX.reshape(width,height);
  		deriv2YY.reshape(width,height);
  		deriv2XY.reshape(width,height);
  
  		warpImage2.reshape(width,height);
  		warpDeriv2X.reshape(width,height);
  		warpDeriv2Y.reshape(width,height);
  		warpDeriv2XX.reshape(width,height);
  		warpDeriv2YY.reshape(width,height);
  		warpDeriv2XY.reshape(width,height);
  
  		derivFlowUX.reshape(width,height);
  		derivFlowUY.reshape(width,height);
  		derivFlowVX.reshape(width,height);
  		derivFlowVY.reshape(width,height);
  
  		psiData.reshape(width,height);
  		psiGradient.reshape(width,height);
  		psiSmooth.reshape(width,height);
  
  		divU.reshape(width,height);
  		divV.reshape(width,height);
  		divD.reshape(width,height);
  
  		du.reshape(width,height);
  		dv.reshape(width,height);
  	}
docs: Resize images for the current layer being processed