()
| 45 | end |
| 46 | |
| 47 | def example3() |
| 48 | require 'simpleitk' |
| 49 | |
| 50 | #START_PROCEDURAL_TRANSFORM_READER_WRITER_EXAMPLE |
| 51 | basic_transform = Simpleitk::Euler2DTransform.new |
| 52 | trans = Simpleitk::VectorDouble.new |
| 53 | trans << 2.0 |
| 54 | trans << 3.0 |
| 55 | basic_transform.set_translation(trans) |
| 56 | |
| 57 | file_name = 'euler2D_rb.tfm' |
| 58 | Simpleitk::write_transform(basic_transform, file_name) |
| 59 | read_result = Simpleitk::read_transform(file_name) |
| 60 | |
| 61 | raise "This shouldn't happen." unless basic_transform.class != read_result.class |
| 62 | #END_PROCEDURAL_TRANSFORM_READER_WRITER_EXAMPLE |
| 63 | end |
| 64 | |
| 65 | if ARGV.length != 2 then |
| 66 | puts "Usage: SimpleIO <input> <output>"; |
no outgoing calls
no test coverage detected