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

Method example3

Examples/SimpleIO/SimpleIO.cs:50–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50static void example3() {
51 //START_PROCEDURAL_TRANSFORM_READER_WRITER_EXAMPLE
52 Euler2DTransform basic_transform = new Euler2DTransform();
53 VectorDouble trans = new VectorDouble( new double[] {2.0, 3.0} );
54 basic_transform.SetTranslation(trans);
55
56 string file_name = "euler2D_cs.tfm";
57 sitk.WriteTransform(basic_transform, file_name);
58
59 Transform read_result = sitk.ReadTransform(file_name);
60
61 Debug.Assert( basic_transform.GetName() != read_result.GetName() );
62 //END_PROCEDURAL_TRANSFORM_READER_WRITER_EXAMPLE
63}
64
65static void Main(string[] args) {
66 try {

Callers

nothing calls this directly

Calls 3

WriteTransformMethod · 0.80
SetTranslationMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected