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

Function example2

Examples/SimpleIO/SimpleIO.rb:38–45  ·  view source on GitHub ↗
(inputImageFileName, outputImageFileName)

Source from the content-addressed store, hash-verified

36end
37
38def example2(inputImageFileName, outputImageFileName)
39 require 'simpleitk'
40
41 #START_PROCEDURAL_IMAGE_READER_WRITER_EXAMPLE
42 image = Simpleitk::read_image(inputImageFileName, Simpleitk::SitkUnknown, "PNGImageIO")
43 Simpleitk::write_image(image, outputImageFileName)
44 #END_PROCEDURAL_IMAGE_READER_WRITER_EXAMPLE
45end
46
47def example3()
48 require 'simpleitk'

Callers 2

MainMethod · 0.70
SimpleIO.rbFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected