code: public void setInput( I input ) {
  		derivX.reshape(input.width,input.height);
  		derivY.reshape(input.width,input.height);
  
  		// pixel gradient
  		gradient.process(input,derivX,derivY);
  	}
docs: Specifies input image.  Gradient is computed immediately
  @param input input image