Page MenuHomePhabricator

[Py] UC2.3 - Load images and explore properties
Closed, ResolvedPublic

Description

open an python enviroment of choice (with the mitk python package installed)

import mitk.ioutil

loaded_images = mitk.ioutil.load(file_name) #return array of loaded images

data = loaded_images[0]
property_names = data.get_property_names()

for name in property_names:
  prop = data.get_property(name)
  print '{}({}) = {}'.format(name, type_name(prop), prop.get_value())

Event Timeline

floca renamed this task from UC5 - Load and save images out of a pthon script to [Py] UC5 - Load and save images out of a pthon script.Nov 16 2023, 4:29 PM
floca triaged this task as High priority.
floca renamed this task from [Py] UC5 - Load and save images out of a pthon script to [Py] UC2.3 - Load images and explore properties.Mar 7 2024, 11:15 AM
floca lowered the priority of this task from High to Normal.
floca updated the task description. (Show Details)
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.