Page MenuHomePhabricator

[Py] UC1.1 - Selected image can be manipulated with simpleITK and updated
Closed, ResolvedPublic

Description

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

import mitk.plugin
import mitk.core
import SimpleITK as sitk

nodes = mitk.plugin.get_current_selection()
for node in nodes:
  gaussian = sitk.SmoothingRecursiveGaussianImageFilter()
  blur_image = gaussian.Execute(node.data)
  node.data = blur_image

After execution content of all selected nodes are blured and the render windows are directly updated accordingly.

Event Timeline

floca renamed this task from [Py] Selected image can be manipulated with simpleITK and updated to [Py] UC1 - Selected image can be manipulated with simpleITK and updated.Jul 31 2023, 7:44 PM
floca updated the task description. (Show Details)
floca triaged this task as Normal priority.Nov 16 2023, 4:29 PM
floca renamed this task from [Py] UC1 - Selected image can be manipulated with simpleITK and updated to [Py] UC1.1 - Selected image can be manipulated with simpleITK and updated.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.