Closed bogovicj closed 1 year ago
@axtimwalde
The RealPositionable.setPosition(double[]) API says:
RealPositionable.setPosition(double[])
position - absolute position, length must be ≥ EuclideanSpace.numDimensions()
emphasis on greater than or equal to numDimensions.
But the default methods RealRandomAccess.setPositionAndGet assert for equality:
RealRandomAccess.setPositionAndGet
https://github.com/imglib/imglib2/blob/5c548b4701f8668e151bb931cba4e577c405fcd1/src/main/java/net/imglib2/RealRandomAccess.java#L160
I would expect the assertion to read
assert position.numDimensions() >= numDimensions();
fixed by #321
@axtimwalde
The
RealPositionable.setPosition(double[])
API says:emphasis on greater than or equal to numDimensions.
But the default methods
RealRandomAccess.setPositionAndGet
assert for equality:https://github.com/imglib/imglib2/blob/5c548b4701f8668e151bb931cba4e577c405fcd1/src/main/java/net/imglib2/RealRandomAccess.java#L160
I would expect the assertion to read