@@ -22,6 +22,7 @@ public class Circles
2222 /**
2323 * Writes a circle in the target {@link RandomAccessible}. The circle is
2424 * written by <b>incrementing</b> the pixel values by 1 along the circle.
25+ * The circle is written in a plane in dimensions 0 and 1.
2526 *
2627 * @param rai
2728 * the random accessible. It is the caller responsibility to
@@ -31,8 +32,7 @@ public class Circles
3132 * the circle center. Must be at least of dimension 2. Dimensions
3233 * 0 and 1 are used to specify the circle center.
3334 * @param radius
34- * the circle radius. The circle is written in a plane in
35- * dimensions 0 and 1.
35+ * the circle radius.
3636 * @param <T>
3737 * the type of the target image.
3838 */
@@ -50,8 +50,9 @@ public static < T extends RealType< T > > void inc( final RandomAccessible< T >
5050 * ensure it can be accessed everywhere the circle will be
5151 * iterated.
5252 * @param center
53- * the circle center. Must be at least of dimension 2. Dimensions
54- * 0 and 1 are used to specify the circle center.
53+ * the circle center. Must contain at least of dimensions
54+ * <code>dimX</code> and <code>dimY</code>, used to specify the
55+ * circle center.
5556 * @param radius
5657 * the circle radius.
5758 * @param dimX
@@ -61,7 +62,8 @@ public static < T extends RealType< T > > void inc( final RandomAccessible< T >
6162 * @param <T>
6263 * the type of the target image.
6364 */
64- public static < T extends RealType < T > > void inc ( final RandomAccessible < T > rai , final Localizable center , final long radius , final int dimX , final int dimY )
65+ public static < T extends RealType < T > > void inc ( final RandomAccessible < T > rai , final Localizable center ,
66+ final long radius , final int dimX , final int dimY )
6567 {
6668 final Cursor < T > cursor = new CircleCursor < T >( rai , center , radius , dimX , dimY );
6769 while ( cursor .hasNext () )
@@ -73,7 +75,8 @@ public static < T extends RealType< T > > void inc( final RandomAccessible< T >
7375
7476 /**
7577 * Writes a circle in the target {@link RandomAccessible}. The circle is
76- * written by <b>setting</b> the pixel values with the specified value.
78+ * written by <b>setting</b> the pixel values with the specified value. The
79+ * circle is written in a plane in dimensions 0 and 1.
7780 *
7881 * @param rai
7982 * the target random accessible. It is the caller responsibility
@@ -83,8 +86,7 @@ public static < T extends RealType< T > > void inc( final RandomAccessible< T >
8386 * the circle center. Must be at least of dimension 2. Dimensions
8487 * 0 and 1 are used to specify the circle center.
8588 * @param radius
86- * the circle radius. The circle is written in a plane in
87- * dimensions 0 and 1.
89+ * the circle radius.
8890 * @param value
8991 * the value to write along the circle.
9092 * @param <T>
@@ -104,8 +106,9 @@ public static < T extends Type< T > > void set( final RandomAccessible< T > rai,
104106 * to ensure it can be accessed everywhere the circle will be
105107 * iterated.
106108 * @param center
107- * the circle center. Must be at least of dimension 2. Dimensions
108- * 0 and 1 are used to specify the circle center.
109+ * the circle center. Must contain at least of dimensions
110+ * <code>dimX</code> and <code>dimY</code>, used to specify the
111+ * circle center.
109112 * @param radius
110113 * the circle radius.
111114 * @param dimX
@@ -130,7 +133,7 @@ public static < T extends Type< T > > void set( final RandomAccessible< T > rai,
130133 /**
131134 * Writes a circle in the target {@link RandomAccessible}. The circle is
132135 * written by <b>adding</b> the specified value to the pixel values already
133- * in the image.
136+ * in the image. The circle is written in a plane in dimensions 0 and 1.
134137 *
135138 * @param rai
136139 * the random accessible. It is the caller responsibility to
@@ -140,8 +143,7 @@ public static < T extends Type< T > > void set( final RandomAccessible< T > rai,
140143 * the circle center. Must be at least of dimension 2. Dimensions
141144 * 0 and 1 are used to specify the circle center.
142145 * @param radius
143- * the circle radius. The circle is written in a plane in
144- * dimensions 0 and 1.
146+ * the circle radius.
145147 * @param value
146148 * the value to add along the circle.
147149 * @param <T>
@@ -162,8 +164,9 @@ public static < T extends Add< T > > void add( final RandomAccessible< T > rai,
162164 * ensure it can be accessed everywhere the circle will be
163165 * iterated.
164166 * @param center
165- * the circle center. Must be at least of dimension 2. Dimensions
166- * 0 and 1 are used to specify the circle center.
167+ * the circle center. Must contain at least of dimensions
168+ * <code>dimX</code> and <code>dimY</code>, used to specify the
169+ * circle center.
167170 * @param radius
168171 * the circle radius.
169172 * @param dimX
0 commit comments