Skip to content
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

Multiple #@matrix parameters not supported #25

Open
imagejan opened this issue Mar 23, 2020 · 0 comments
Open

Multiple #@matrix parameters not supported #25

imagejan opened this issue Mar 23, 2020 · 0 comments

Comments

@imagejan
Copy link
Member

In a Matlab script started from ImageJ's script editor, a single #@matrix parameter works as expected and takes the current active image from ImageJ.

In analogy to #@ Dataset, I'd expect to get dropdown choice widgets for my parameters if I have more than one of them:

#@ matrix input1
#@ matrix input2

Instead, this show an error that a MatlabNumericArray is required but none is available.


While MATLABNumericArrayPreprocessor (extends SingleInputPreprocessor) deals with the former case, the latter currently doesn't work presumably because there is no direct conversion support for ImagePlus -> MatlabNumericArray.

We could add support for all the common image-type objects (e.g. ImagePlus, Img, Dataset) by chained conversion using a delegate converter, but is this repository the right place to e.g. also contain the legacy ij.ImagePlus <-> matlabcontrol.extensions.MatlabNumericArray? @ctrueden?


As an aside: the #@matrix script parameter alias is added in scripting-matlab by DefaultMATLABService

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant