-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SobelRAI derivativeComputer array error prone if dimension mismatch #627
Comments
This issue has been mentioned on Image.sc Forum. There might be relevant details there: |
I think Gauss and derivative Gauss also have the same behaviour btw. |
@ctr26 can you be more specific in which Ops have the issue? I am only seeing this issue in |
This fails for me:
|
@ctr26 that is failing for other reasons. Check the agreement of the arguments you are passing with the parameters of the Op (forum.image.sc is the place to discuss this). If you find any Ops that are experiencing the same issue that we are seeing with |
As I discovered by trying to solve a post on forum.image.sc,
SobelRAI
can throwArrayIndexOutOfBoundsException
s if the input image differs on the number of dimensions from what was passed to the matcher during the creation of the Op. The faulty line is here: if the input image has fewer dimensions than the image passed during creation, we will receive anArrayIndexOutOfBoundsException
in thatfor
loop, and if we have more dimensions than we had during Op creation, then not all dimensions of the image will be processed.Is there any reason that we do not run a
for
loop on all dimensions of the image and use only onederivativeComputer
? We could just transform the dimensions of the image to compute every dimension...The text was updated successfully, but these errors were encountered: