/** * Create a circular kernel where all elements within the circle * have value 1.0 while those outside have value 0.0. * Kernel width is {@code 2*radius + 1}. * The key element is at position {@code x=radius, y=radius}. * <p> * This is equivalent to: * <pre><code> * createCircle(radius, Kernel.ValueType.BINARY, 1.0f) * </code></pre> * * @param radius radius of the circle * * @return a new {@code KernelJAI} object */ public static KernelJAI createCircle(int radius) { return createConstantCircle(radius, 1.0f); }