MCPcopy Create free account
hub / github.com/SimpleITK/SimpleITK / example2

Function example2

Examples/SimpleIO/SimpleIO.py:51–59  ·  view source on GitHub ↗

A Simple Procedural Image Input/Output Example

(inputImageFileName, outputImageFileName)

Source from the content-addressed store, hash-verified

49# A simple procedural image input/output example
50#
51def example2(inputImageFileName, outputImageFileName):
52 """ A Simple Procedural Image Input/Output Example """
53
54 import SimpleITK as sitk
55
56 #START_PROCEDURAL_IMAGE_READER_WRITER_EXAMPLE
57 image = sitk.ReadImage(inputImageFileName, imageIO="PNGImageIO")
58 sitk.WriteImage(image, outputImageFileName)
59 #END_PROCEDURAL_IMAGE_READER_WRITER_EXAMPLE
60
61
62# A simple transform input/output example

Callers 1

SimpleIO.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected