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

Use plugin framework for output processing #14

Open
imagejan opened this issue Mar 20, 2018 · 1 comment
Open

Use plugin framework for output processing #14

imagejan opened this issue Mar 20, 2018 · 1 comment

Comments

@imagejan
Copy link
Member

Let's create an extensible way to process outputs of batch-processed modules.

Currently, module outputs will be collected and shown as a Table after batch processing:

for (Entry<String, Object> output : outputs.entrySet()) {
outputTable.set(output.getKey(), outputTable.getRowCount() - 1,
output.getValue());
}

The outputFolder parameter is currently unused, but was foreseen to be used to save image outputs for each iteration when processing modules that output images.

This output processing should be provided in an extensible way by BatchOutputProcessors, so that we'd have an ImageWriterBatchOutputProcessor (likely in a different repository) that takes care of collecting outputs of a compatible type (Dataset, Img, ...) and saves them to the provided directory.

In this case, the ModuleBatchProcessor needs to be made aware of the required additional inputs (in this case, File outputFolder) and we need to dynamically add inputs to the dialog depending on the output processor that is available.

This needs a bit more thought, and I'd be happy about feedback from others.

@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/saving-outputtable-after-macro-batch/94477/7

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

No branches or pull requests

2 participants