We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5359adc commit b5e4935Copy full SHA for b5e4935
1 file changed
docs/ops/doc/ParameterConversion.rst
@@ -50,7 +50,7 @@ Suppose a user wants to use this Op with a small, fixed kernel, which for ease i
50
{ 1/9, 1/9, 1/9} //
51
};
52
// transform double[][] into a RandomAccessibleInterval
53
- Img<DoubleType> kernel = ArrayImgs.doubles(data, new long[] {3, 3});
+ Img<DoubleType> kernel = ArrayImgs.doubles(data, 3, 3);
54
var cursor = kernel.cursor();
55
while(cursor.hasNext())
56
cursor.next().set(kernel[cursor.getIntPosition(0)][cursor.getIntPosition(1)]);
0 commit comments