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

Initialize name property for ImagePlus outputs #24

Open
imagejan opened this issue Aug 14, 2017 · 0 comments
Open

Initialize name property for ImagePlus outputs #24

imagejan opened this issue Aug 14, 2017 · 0 comments

Comments

@imagejan
Copy link

imagejan commented Aug 14, 2017

When you define:

@Parameter (type = ItemIO.OUTPUT)
private ImagePlus imp;

in an ImageJ2 command, the output Img in KNIME should get its name attribute populated from imp.getTitle(). Currently, it is always null which can lead to unexpected errors downstream of nodes with this output.
I assume this change would need to go somewhere into these lines:

ImgPlusCell output = null;
try {
output = factory.createCell(new ImgPlus(image));
} catch (final IOException e) {
e.printStackTrace();
}

EDIT: the output image also contains additional dimensions of length 1 and labelled Unknown. It would be nice to keep the dimensions from the ImagePlus, or at least clean the dimensions of length 1.

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