/** * Creates a rectangular kernel where all elements have value 1.0. * The key element will be at {@code (width/2, height/2)}. * * @param width rectangle width * @param height rectangle height * * @return a new {@code KernelJAI} object * * @throws IllegalArgumentException if either {@code width} or {@code height} * are less than 1 */ public static KernelJAI createRectangle(int width, int height) { return createConstantRectangle(width, height, 1.0f); }