Commit 3a2be28c authored by LOUIS Maxime's avatar LOUIS Maxime

Starfigh registration example working

parent 89401950
......@@ -2,21 +2,22 @@
<model deformetrica-min-version="3.0.0">
<model-type>Registration</model-type>
<dimension>2</dimension>
<template>
<object id="starfish">
<deformable-object-type>NonOrientedPolyline</deformable-object-type>
<deformable-object-type>Polyline</deformable-object-type>
<attachment-type>Current</attachment-type>
<noise-std>0.1</noise-std>
<kernel-width>30.0</kernel-width>
<kernel-width>50.0</kernel-width>
<kernel-type>torch</kernel-type>
<filename>data/starfish_reference.vtk</filename>
</object>
</template>
<deformation-parameters>
<kernel-width>40</kernel-width>
<kernel-width>30</kernel-width>
<kernel-type>torch</kernel-type>
<number-of-timepoints>10</number-of-timepoints>
</deformation-parameters>
</model>
<?xml version="1.0"?>
<optimization-parameters deformetrica-min-version="3.0.0">
<optimization-method-type>GradientAscent</optimization-method-type>
<initial-step-size>1e-3</initial-step-size>
<optimization-method-type>ScipyLBFGS</optimization-method-type>
<max-iterations>200</max-iterations>
</optimization-parameters>
1 25 2
5.70592 -4.48275
4.72495 5.0201
13.7529 11.9041
4.72822 23.8423
17.6298 5.28213
21.0319 -20.4712
7.68677 -5.85086
9.5522 -2.67293
2.38697 -1.93018
13.9926 5.6176
17.9321 28.0729
13.9707 7.16046
-12.5464 -11.0268
1.85098 32.4104
-4.83851 2.35715
34.3301 46.5172
29.9743 1.16853
1.92306 9.1565
5.68936 0.359697
-1.91289 -10.4453
7.80858 -1.37772
-6.21602 -9.51445
-14.1175 35.0099
3.34225 11.4166
-0.379114 -3.39723
# vtk DataFile Version 4.0
vtk output
ASCII
DATASET POLYDATA
POINTS 194 float
151 30.9503 0 155 32.536 0 157.34 36 0
158.272 41 0 157.986 46 0 157 51.6223 0
156 56.1489 0 154.854 61 0 153.637 66 0
152.402 71 0 151.164 76 0 150 80.745 0
148.976 85 0 147.804 90 0 146.697 95 0
145.775 100 0 145.473 106 0 146.972 111 0
150 113.957 0 154 115.282 0 160 115.474 0
166 115.081 0 171 114.714 0 177 114.28 0
182 113.84 0 188 113.165 0 193 112.549 0
198 111.965 0 204 111.341 0 209 110.931 0
215 110.789 0 220 111.39 0 224.17 113 0
227.262 116 0 228 120.859 0 226 124.414 0
222.448 127 0 218 128.655 0 213 129.682 0
208 130.342 0 202 130.951 0 197 131.384 0
191 131.827 0 186 132.199 0 180 132.768 0
175 133.358 0 169.765 134 0 164 134.683 0
159 135.339 0 154 136.432 0 150 138.305 0
147 141.219 0 145 145.838 0 144.755 151 0
145.545 156 0 146.716 161 0 147.996 166 0
149.042 170 0 150.346 175 0 151.63 180 0
152.895 185 0 154 189.398 0 155.155 194 0
156.407 199 0 157.63 204 0 158.709 209 0
159.369 214 0 159 219.444 0 157 223.656 0
153 225.967 0 149 225.306 0 145.937 223 0
143.18 219 0 141.43 215 0 140 210.673 0
138.682 206 0 137.374 201 0 136.105 196 0
135 191.602 0 133.844 187 0 132.579 182 0
131.288 177 0 130 172.255 0 128.702 168 0
127 163.692 0 124.465 160 0 120 158.085 0
115 159.842 0 112 162.31 0 109 165.515 0
106.146 169 0 103.839 172 0 101 175.78 0
98.5401 179 0 96 182.164 0 93 185.666 0
90 188.966 0 87.1476 192 0 84.2836 195 0
81.3387 198 0 78.0886 201 0 75 203.236 0
70 204.954 0 65.2334 203 0 63.9135 199 0
65 194.032 0 67 190.147 0 69.0397 187 0
71.8842 183 0 74.0867 180 0 77 176.1 0
79.3765 173 0 82 169.675 0 84.9475 166 0
87.2622 163 0 89.839 159 0 91.0249 155 0
89 151.771 0 84 150.905 0 79 151.409 0
74 152.37 0 69 153.538 0 64 154.799 0
59.3236 156 0 55 157.085 0 50 158.228 0
45 159.056 0 39 159.086 0 35 157.886 0
31.8162 155 0 31.0041 151 0 33 146.757 0
36.22 144 0 40.1221 142 0 45 140.284 0
49.5378 139 0 54 137.826 0 59 136.527 0
64 135.22 0 68.6715 134 0 73 132.881 0
78 131.606 0 83 130.339 0 88 129.059 0
92 127.993 0 97 126.495 0 101 124.956 0
105 122.573 0 108 119.276 0 109.618 115 0
109.521 109 0 108.3 104 0 106.962 100 0
105.077 95 0 103.533 91 0 102 86.9035 0
100.216 82 0 98.7534 78 0 97 73.3652 0
95.2787 69 0 93.6526 65 0 92 60.9961 0
90 56.0413 0 88.5573 52 0 87.3343 47 0
87.3956 41 0 89.3334 37 0 93 34.8839 0
98 35.7969 0 101 38.0881 0 103.977 42 0
106 45.8665 0 107.735 50 0 109.245 54 0
111 58.7205 0 112.662 63 0 114.32 67 0
116.133 71 0 118.224 75 0 120.965 79 0
124 81.3105 0 128.145 80 0 130.62 76 0
132.167 72 0 133.682 67 0 135 62.0563 0
136.014 58 0 137.235 53 0 138.496 48 0
139.957 43 0 141.507 39 0 143.862 35 0
147 32.0926 0 151 30.9503 0
LINES 194 582
2 0 1
2 1 2
2 2 3
2 3 4
2 4 5
2 5 6
2 6 7
2 7 8
2 8 9
2 9 10
2 10 11
2 11 12
2 12 13
2 13 14
2 14 15
2 15 16
2 16 17
2 17 18
2 18 19
2 19 20
2 20 21
2 21 22
2 22 23
2 23 24
2 24 25
2 25 26
2 26 27
2 27 28
2 28 29
2 29 30
2 30 31
2 31 32
2 32 33
2 33 34
2 34 35
2 35 36
2 36 37
2 37 38
2 38 39
2 39 40
2 40 41
2 41 42
2 42 43
2 43 44
2 44 45
2 45 46
2 46 47
2 47 48
2 48 49
2 49 50
2 50 51
2 51 52
2 52 53
2 53 54
2 54 55
2 55 56
2 56 57
2 57 58
2 58 59
2 59 60
2 60 61
2 61 62
2 62 63
2 63 64
2 64 65
2 65 66
2 66 67
2 67 68
2 68 69
2 69 70
2 70 71
2 71 72
2 72 73
2 73 74
2 74 75
2 75 76
2 76 77
2 77 78
2 78 79
2 79 80
2 80 81
2 81 82
2 82 83
2 83 84
2 84 85
2 85 86
2 86 87
2 87 88
2 88 89
2 89 90
2 90 91
2 91 92
2 92 93
2 93 94
2 94 95
2 95 96
2 96 97
2 97 98
2 98 99
2 99 100
2 100 101
2 101 102
2 102 103
2 103 104
2 104 105
2 105 106
2 106 107
2 107 108
2 108 109
2 109 110
2 110 111
2 111 112
2 112 113
2 113 114
2 114 115
2 115 116
2 116 117
2 117 118
2 118 119
2 119 120
2 120 121
2 121 122
2 122 123
2 123 124
2 124 125
2 125 126
2 126 127
2 127 128
2 128 129
2 129 130
2 130 131
2 131 132
2 132 133
2 133 134
2 134 135
2 135 136
2 136 137
2 137 138
2 138 139
2 139 140
2 140 141
2 141 142
2 142 143
2 143 144
2 144 145
2 145 146
2 146 147
2 147 148
2 148 149
2 149 150
2 150 151
2 151 152
2 152 153
2 153 154
2 154 155
2 155 156
2 156 157
2 157 158
2 158 159
2 159 160
2 160 161
2 161 162
2 162 163
2 163 164
2 164 165
2 165 166
2 166 167
2 167 168
2 168 169
2 169 170
2 170 171
2 171 172
2 172 173
2 173 174
2 174 175
2 175 176
2 176 177
2 177 178
2 178 179
2 179 180
2 180 181
2 181 182
2 182 183
2 183 184
2 184 185
2 185 186
2 186 187
2 187 188
2 188 189
2 189 190
2 190 191
2 191 192
2 192 193
2 193 0
# vtk DataFile Version 4.0
vtk output
ASCII
DATASET POLYDATA
POINTS 194 float
151 30.9503 0 155 32.536 0 157.34 36 0
158.272 41 0 157.986 46 0 157 51.6223 0
156 56.1489 0 154.854 61 0 153.637 66 0
152.402 71 0 151.164 76 0 150 80.745 0
148.976 85 0 147.804 90 0 146.697 95 0
145.775 100 0 145.473 106 0 146.972 111 0
150 113.957 0 154 115.282 0 160 115.474 0
166 115.081 0 171 114.714 0 177 114.28 0
182 113.84 0 188 113.165 0 193 112.549 0
198 111.965 0 204 111.341 0 209 110.931 0
215 110.789 0 220 111.39 0 224.17 113 0
227.262 116 0 228 120.859 0 226 124.414 0
222.448 127 0 218 128.655 0 213 129.682 0
208 130.342 0 202 130.951 0 197 131.384 0
191 131.827 0 186 132.199 0 180 132.768 0
175 133.358 0 169.765 134 0 164 134.683 0
159 135.339 0 154 136.432 0 150 138.305 0
147 141.219 0 145 145.838 0 144.755 151 0
145.545 156 0 146.716 161 0 147.996 166 0
149.042 170 0 150.346 175 0 151.63 180 0
152.895 185 0 154 189.398 0 155.155 194 0
156.407 199 0 157.63 204 0 158.709 209 0
159.369 214 0 159 219.444 0 157 223.656 0
153 225.967 0 149 225.306 0 145.937 223 0
143.18 219 0 141.43 215 0 140 210.673 0
138.682 206 0 137.374 201 0 136.105 196 0
135 191.602 0 133.844 187 0 132.579 182 0
131.288 177 0 130 172.255 0 128.702 168 0
127 163.692 0 124.465 160 0 120 158.085 0
115 159.842 0 112 162.31 0 109 165.515 0
106.146 169 0 103.839 172 0 101 175.78 0
98.5401 179 0 96 182.164 0 93 185.666 0
90 188.966 0 87.1476 192 0 84.2836 195 0
81.3387 198 0 78.0886 201 0 75 203.236 0
70 204.954 0 65.2334 203 0 63.9135 199 0
65 194.032 0 67 190.147 0 69.0397 187 0
71.8842 183 0 74.0867 180 0 77 176.1 0
79.3765 173 0 82 169.675 0 84.9475 166 0
87.2622 163 0 89.839 159 0 91.0249 155 0
89 151.771 0 84 150.905 0 79 151.409 0
74 152.37 0 69 153.538 0 64 154.799 0
59.3236 156 0 55 157.085 0 50 158.228 0
45 159.056 0 39 159.086 0 35 157.886 0
31.8162 155 0 31.0041 151 0 33 146.757 0
36.22 144 0 40.1221 142 0 45 140.284 0
49.5378 139 0 54 137.826 0 59 136.527 0
64 135.22 0 68.6715 134 0 73 132.881 0
78 131.606 0 83 130.339 0 88 129.059 0
92 127.993 0 97 126.495 0 101 124.956 0
105 122.573 0 108 119.276 0 109.618 115 0
109.521 109 0 108.3 104 0 106.962 100 0
105.077 95 0 103.533 91 0 102 86.9035 0
100.216 82 0 98.7534 78 0 97 73.3652 0
95.2787 69 0 93.6526 65 0 92 60.9961 0
90 56.0413 0 88.5573 52 0 87.3343 47 0
87.3956 41 0 89.3334 37 0 93 34.8839 0
98 35.7969 0 101 38.0881 0 103.977 42 0
106 45.8665 0 107.735 50 0 109.245 54 0
111 58.7205 0 112.662 63 0 114.32 67 0
116.133 71 0 118.224 75 0 120.965 79 0
124 81.3105 0 128.145 80 0 130.62 76 0
132.167 72 0 133.682 67 0 135 62.0563 0
136.014 58 0 137.235 53 0 138.496 48 0
139.957 43 0 141.507 39 0 143.862 35 0
147 32.0926 0 151 30.9503 0
LINES 194 582
2 0 1
2 1 2
2 2 3
2 3 4
2 4 5
2 5 6
2 6 7
2 7 8
2 8 9
2 9 10
2 10 11
2 11 12
2 12 13
2 13 14
2 14 15
2 15 16
2 16 17
2 17 18
2 18 19
2 19 20
2 20 21
2 21 22
2 22 23
2 23 24
2 24 25
2 25 26
2 26 27
2 27 28
2 28 29
2 29 30
2 30 31
2 31 32
2 32 33
2 33 34
2 34 35
2 35 36
2 36 37
2 37 38
2 38 39
2 39 40
2 40 41
2 41 42
2 42 43
2 43 44
2 44 45
2 45 46
2 46 47
2 47 48
2 48 49
2 49 50
2 50 51
2 51 52
2 52 53
2 53 54
2 54 55
2 55 56
2 56 57
2 57 58
2 58 59
2 59 60
2 60 61
2 61 62
2 62 63
2 63 64
2 64 65
2 65 66
2 66 67
2 67 68
2 68 69
2 69 70
2 70 71
2 71 72
2 72 73
2 73 74
2 74 75
2 75 76
2 76 77
2 77 78
2 78 79
2 79 80
2 80 81
2 81 82
2 82 83
2 83 84
2 84 85
2 85 86
2 86 87
2 87 88
2 88 89
2 89 90
2 90 91
2 91 92
2 92 93
2 93 94
2 94 95
2 95 96
2 96 97
2 97 98
2 98 99
2 99 100
2 100 101
2 101 102
2 102 103
2 103 104
2 104 105
2 105 106
2 106 107
2 107 108
2 108 109
2 109 110
2 110 111
2 111 112
2 112 113
2 113 114
2 114 115
2 115 116
2 116 117
2 117 118
2 118 119
2 119 120
2 120 121
2 121 122
2 122 123
2 123 124
2 124 125
2 125 126
2 126 127
2 127 128
2 128 129
2 129 130
2 130 131
2 131 132
2 132 133
2 133 134
2 134 135
2 135 136
2 136 137
2 137 138
2 138 139
2 139 140
2 140 141
2 141 142
2 142 143
2 143 144
2 144 145
2 145 146
2 146 147
2 147 148
2 148 149
2 149 150
2 150 151
2 151 152
2 152 153
2 153 154
2 154 155
2 155 156
2 156 157
2 157 158
2 158 159
2 159 160
2 160 161
2 161 162
2 162 163
2 163 164
2 164 165
2 165 166
2 166 167
2 167 168
2 168 169
2 169 170
2 170 171
2 171 172
2 172 173
2 173 174
2 174 175
2 175 176
2 176 177
2 177 178
2 178 179
2 179 180
2 180 181
2 181 182
2 182 183
2 183 184
2 184 185
2 185 186
2 186 187
2 187 188
2 188 189
2 189 190
2 190 191
2 191 192
2 192 193
2 193 0
# vtk DataFile Version 4.0
vtk output
ASCII
DATASET POLYDATA
POINTS 194 float
156.03 36.4735 0 159.94 38.0001 0 162.154 41.2006 0
162.918 45.7524 0 162.471 50.2703 0 161.314 55.3383 0
160.189 59.4273 0 158.923 63.8358 0 157.595 68.4219 0
156.25 73.0586 0 154.888 77.7462 0 153.576 82.2371 0
152.382 86.2941 0 150.959 91.0908 0 149.541 95.914 0
148.26 100.764 0 147.512 106.635 0 148.699 111.61 0
151.644 114.631 0 155.731 116.062 0 161.977 116.418 0
168.207 116.19 0 173.331 115.96 0 179.369 115.692 0
184.299 115.389 0 190.091 114.883 0 194.815 114.42 0
199.459 114.01 0 204.956 113.631 0 209.508 113.453 0
214.98 113.609 0 219.592 114.449 0 223.514 116.213 0
226.512 119.244 0 227.362 123.968 0 225.56 127.379 0
222.242 129.851 0 218.049 131.42 0 213.322 132.367 0
208.587 132.942 0 202.882 133.435 0 198.093 133.756 0
192.285 134.048 0 187.38 134.28 0 181.404 134.671 0
176.347 135.111 0 170.985 135.602 0 165.019 136.136 0
159.807 136.689 0 154.566 137.724 0 150.354 139.624 0
147.185 142.664 0 145.07 147.548 0 144.806 153.004 0
145.628 158.223 0 146.842 163.344 0 148.157 168.35 0
149.217 172.269 0 150.518 177.068 0 151.775 181.773 0
152.993 186.408 0 154.047 190.451 0 155.144 194.672 0
156.334 199.275 0 157.503 203.922 0 158.539 208.638 0
159.17 213.442 0 158.783 218.788 0 156.78 223.02 0
152.785 225.445 0 148.79 224.932 0 145.73 222.788 0
142.978 219.024 0 141.234 215.273 0 139.815 211.249 0
138.517 206.945 0 137.238 202.379 0 136.004 197.831 0
134.932 193.82 0 133.808 189.587 0 132.571 184.913 0
131.295 180.132 0 130.006 175.476 0 128.695 171.194 0
126.973 166.756 0 124.432 162.865 0 120.032 160.765 0
115.197 162.497 0 112.332 164.988 0 109.487 168.201 0
106.794 171.651 0 104.628 174.586 0 101.975 178.244 0
99.6893 181.333 0 97.3408 184.351 0 94.5799 187.685 0
91.829 190.836 0 89.2184 193.751 0 86.5956 196.656 0
83.8869 199.584 0 80.8668 202.529 0 77.9529 204.734 0
73.1361 206.438 0 68.41 204.517 0 66.9948 200.553 0
67.9021 195.59 0 69.7282 191.682 0 71.611 188.505 0
74.2468 184.464 0 76.294 181.438 0 79.0144 177.513 0
81.2463 174.404 0 83.7224 171.078 0 86.5141 167.409 0
88.7085 164.409 0 91.1477 160.374 0 92.2602 156.26 0
90.3218 152.835 0 85.5439 151.838 0 80.7321 152.323 0
75.8753 153.338 0 70.9697 154.625 0 66.0163 156.063 0
61.3437 157.475 0 56.9938 158.783 0 51.9337 160.201 0
46.8482 161.304 0 40.7216 161.625 0 36.6304 160.569 0
33.384 157.735 0 32.5924 153.675 0 34.7101 149.299 0
38.0759 146.41 0 42.1271 144.261 0 47.1559 142.347 0
51.7977 140.861 0 56.3248 139.477 0 61.3486 137.938 0
66.3165 136.397 0 70.9057 134.973 0 75.1148 133.682 0
79.9309 132.235 0 84.7083 130.827 0 89.4612 129.437 0
93.2575 128.304 0 98.0131 126.741 0 101.843 125.158 0
105.728 122.726 0 108.729 119.386 0 110.481 115.093 0
110.682 109.141 0 109.746 104.228 0 108.64 100.316 0
107.04 95.4307 0 105.716 91.5174 0 104.403 87.4985 0
102.875 82.6647 0 101.616 78.6954 0 100.089 74.0575 0
98.5682 69.6445 0 97.1085 65.5598 0 95.5992 61.433 0
93.736 56.2835 0 92.371 52.0666 0 91.2148 46.8633 0
91.3606 40.7004 0 93.4212 36.7141 0 97.2893 34.8137 0
102.554 36.2182 0 105.683 38.9021 0 108.716 43.2596 0
110.694 47.4298 0 112.308 51.7845 0 113.651 55.918 0
115.169 60.7112 0 116.593 64.9878 0 118.022 68.9336 0
119.607 72.8383 0 121.477 76.7128 0 124.014 80.5718 0
126.957 82.8163 0 131.241 81.6551 0 133.96 77.9453 0
135.72 74.2378 0 137.48 69.6192 0 139.031 65.0697 0
140.233 61.3458 0 141.681 56.7583 0 143.157 52.1623 0
144.805 47.5474 0 146.473 43.8416 0 148.905 40.1363 0
152.062 37.4689 0 156.03 36.4735 0
LINES 194 582
2 0 1
2 1 2
2 2 3
2 3 4
2 4 5
2 5 6
2 6 7
2 7 8
2 8 9
2 9 10
2 10 11
2 11 12
2 12 13
2 13 14
2 14 15
2 15 16
2 16 17
2 17 18
2 18 19
2 19 20
2 20 21
2 21 22
2 22 23
2 23 24
2 24 25