Page MenuHomePhabricator

[Py] UC1 - Selected image can be manipulated with simpleITK and updated
Open, Needs TriagePublic

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)