You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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: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 forImagePlus
->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 legacyij.ImagePlus <-> matlabcontrol.extensions.MatlabNumericArray
? @ctrueden?As an aside: the
#@matrix
script parameter alias is added inscripting-matlab
byDefaultMATLABService
The text was updated successfully, but these errors were encountered: