Skip to content

Commit b5e4935

Browse files
committed
ParameterConversion: remove unnecessary long[] {}
1 parent 5359adc commit b5e4935

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/ops/doc/ParameterConversion.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Suppose a user wants to use this Op with a small, fixed kernel, which for ease i
5050
{ 1/9, 1/9, 1/9} //
5151
};
5252
// transform double[][] into a RandomAccessibleInterval
53-
Img<DoubleType> kernel = ArrayImgs.doubles(data, new long[] {3, 3});
53+
Img<DoubleType> kernel = ArrayImgs.doubles(data, 3, 3);
5454
var cursor = kernel.cursor();
5555
while(cursor.hasNext())
5656
cursor.next().set(kernel[cursor.getIntPosition(0)][cursor.getIntPosition(1)]);

0 commit comments

Comments
 (0)