Page MenuHomePhabricator

[Py] UC1.2 - Selected image are stored
Closed, ResolvedPublic

Description

Somthing like that should be possible code and details might vary...

import mitk.plugin
import mitk.ioutil

nodes = mitk.plugin.get_current_selection()
for node in nodes:
  file_name = node.get_name()+'.nrrd'
  mitk.ioutil.save(node.get_data(), file_name)

Result: data of all selected nodes are saved.

Event Timeline

floca renamed this task from [Py] Selected image and stored. to [Py] Selected image are stored.Jul 31 2023, 7:34 PM
floca created this task.
floca renamed this task from [Py] Selected image are stored to [Py] UC2 - Selected image are stored.Jul 31 2023, 7:47 PM
floca triaged this task as Normal priority.Nov 16 2023, 4:29 PM
floca renamed this task from [Py] UC2 - Selected image are stored to [Py] UC1.2 - Selected image are stored.Mar 7 2024, 11:16 AM
kislinsk claimed this task.
kislinsk added a project: Moved to git.dkfz.de.

This task was closed here on Phabricator since it was migrated to GitLab. Please continue on GitLab.