imagej / imagej/imagej-ops

DefaultGaussRAI.compute() reports cryptic IAE for sigma dimension mismatch

Open
#646 1 comment 0 reactions 1 assignee Claimed by @gselzer View on GitHub
bug
Dominant language
Java
Stars
94
Forks
44
PR merge metrics
No merged PRs in 30d

Description

As reported in [this zulip chat](https://imagesc.zulipchat.com/#narrow/stream/328100-scyjava/topic/napari-imagej.3A.20MutableOutputWidget/near/296423679), we get a cryptic `IllegalArgumentException` when we call `DefaultGaussRAI.compute()` with a `sigmas` whose length does not match the input dimensionality. We should try our best to mitigate or fix this.

[Here](https://imagesc.zulipchat.com/#narrow/stream/328100-scyjava/topic/napari-imagej.3A.20MutableOutputWidget/near/296425102) are my suggestions for fixes.

But, there is a third option: using `Contingent`! We can't use this when porting the fix to ImageJ Ops2, but it could help avoid the issue in this project.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.