code: public <B extends ImageGray<B>> B createSameShape( Class<B> type )
  	{
  		return GeneralizedImageOps.createSingleBand(type,width,height);
  	}
docs: Creates a single band image of the specified type that will have the same
  shape as this image