-
Notifications
You must be signed in to change notification settings - Fork 49
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
Output image incorrect when OffsetArray vectors passed as kernel components #269
Comments
I've traced the first difference down to here: With the aberrant case, this line returns And further...
And even further:
|
Since the root issue is that the Julia Perhaps for now, ImageFiltering could manually check for this condition and provide the correct axes. This would be a breaking release. And can add a note that it's a fix for underlying Julia behavior, and that it should be revisited once Julia contains the true fix; at a minimum to make the method conditional on the installed Julia version. |
So looks like there need to be several parts to fix this:
Crossref: JuliaArrays/OffsetArrays.jl#339 |
Just because some behavior change does not necessarily make it "breaking". If a documented behavior changed, then it would definitely be breaking. However, if there is a bug, and people have been relying on that bug, but you fixed it then this is a bug fix. That said, it would be nice if you created some facilities to help people adapt to the fix if it disrupts their software. |
If a 2d kernel is passed as two OffsetArray vectors, the second one transposed or adjoint, the final image is incorrect.
The issue does not occur if the second component is an OffsetArray matrix with one row, or if the vector is transposed /adjointed before being passed to
centered
.The text was updated successfully, but these errors were encountered: