dactim-angio 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,66 @@
1
+ ### macOS
2
+ # Finder metadata
3
+ .DS_Store
4
+
5
+ # Thumbnails
6
+ ._*
7
+
8
+ # Custom folder icons
9
+ Icon
10
+
11
+
12
+ # Volume root files
13
+ .DocumentRevisions-V100
14
+ .fseventsd
15
+ .Spotlight-V100
16
+ .TemporaryItems
17
+ .Trashes
18
+ .VolumeIcon.icns
19
+ .com.apple.timemachine.donotpresent
20
+
21
+ ### Python
22
+ # Byte-compiled files
23
+ __pycache__/
24
+ *.py[cod]
25
+ *$py.class
26
+
27
+ # C extensions
28
+ *.so
29
+
30
+ # Distribution / packaging
31
+ build/
32
+ dist/
33
+ *.egg-info/
34
+ *.egg
35
+
36
+ # dotenv environment variable files
37
+ .env
38
+
39
+ # Virtual environments
40
+ .venv
41
+ env/
42
+ venv/
43
+
44
+ # Unit test / coverage reports
45
+ htmlcov/
46
+ .tox/
47
+ .nox/
48
+ .coverage
49
+ .coverage.*
50
+ .pytest_cache/
51
+
52
+ # Type checkers
53
+ .mypy_cache/
54
+
55
+ # Jupyter Notebook
56
+ .ipynb_checkpoints
57
+
58
+ _old/
59
+ PIMISUTT/
60
+
61
+ # pyenv
62
+ # .python-version
63
+ generate_manifest.py
64
+
65
+ results/reg_parameters_full_database.json
66
+ src/TOF_XA_registration/input_files_setup_full_database.json
@@ -0,0 +1,507 @@
1
+ CeCILL FREE SOFTWARE LICENSE AGREEMENT
2
+
3
+ Version 2.1 dated 2013-06-21
4
+
5
+
6
+ Notice
7
+
8
+ This Agreement is a Free Software license agreement that is the result
9
+ of discussions between its authors in order to ensure compliance with the
10
+ two main principles guiding its drafting:
11
+
12
+ * firstly, compliance with the principles governing the distribution
13
+ of Free Software: access to source code, broad rights granted to users,
14
+ * secondly, the election of a governing law, French law, with which it
15
+ is conformant, both as regards the law of torts and intellectual
16
+ property law, and the protection that it offers to both authors and
17
+ holders of the economic rights over software.
18
+
19
+ The authors of the CeCILL (for Ce(a) C(nrs) I(nria) L(ogiciel) L(ibre))
20
+ license are:
21
+
22
+ Commissariat à l'énergie atomique et aux énergies alternatives - CEA, a
23
+ public scientific, technical and industrial research establishment, having
24
+ its principal place of business at 25 rue Leblanc, immeuble Le Ponant D,
25
+ 75015 Paris, France.
26
+
27
+ Centre National de la Recherche Scientifique - CNRS, a public scientific
28
+ and technological establishment, having its principal place of business at
29
+ 3 rue Michel-Ange, 75794 Paris cedex 16, France.
30
+
31
+ Institut National de Recherche en Informatique et en Automatique - Inria, a
32
+ public scientific and technological establishment, having its principal
33
+ place of business at Domaine de Voluceau, Rocquencourt, BP 105, 78153 Le
34
+ Chesnay cedex, France.
35
+
36
+
37
+ Preamble
38
+
39
+ The purpose of this Free Software license agreement is to grant users the
40
+ right to modify and redistribute the software governed by this license
41
+ within the framework of an open source distribution model.
42
+
43
+ The exercising of this right is conditional upon certain obligations for
44
+ users so as to preserve this status for all subsequent redistributions.
45
+
46
+ In consideration of access to the source code and the rights to copy,
47
+ modify and redistribute granted by the license, users are provided only
48
+ with a limited warranty and the software's author, the holder of the
49
+ economic rights, and the successive licensors only have limited liability.
50
+
51
+ In this respect, the risks associated with loading, using, modifying and/or
52
+ developing or reproducing the software by the user are brought to the
53
+ user's attention, given its Free Software status, which may make it
54
+ complicated to use, with the result that its use is reserved for developers
55
+ and experienced professionals having in-depth computer knowledge. Users are
56
+ therefore encouraged to load and test the suitability of the software as
57
+ regards their requirements in conditions enabling the security of their
58
+ systems and/or data to be ensured and, more generally, to use and operate
59
+ it in the same conditions of security. This Agreement may be freely
60
+ reproduced and published, provided it is not altered, and that no
61
+ provisions are either added or removed herefrom.
62
+
63
+ This Agreement may apply to any or all software for which the holder of the
64
+ economic rights decides to submit the use thereof to its provisions.
65
+
66
+ Frequently asked questions can be found on the official website of the
67
+ CeCILL licenses family (http://www.cecill.info/index.en.html) for any
68
+ necessary clarification.
69
+
70
+
71
+ Article 1 - DEFINITIONS
72
+
73
+ For the purpose of this Agreement, when the following expressions commence
74
+ with a capital letter, they shall have the following meaning:
75
+
76
+ Agreement: means this license agreement, and its possible subsequent
77
+ versions and annexes.
78
+
79
+ Software: means the software in its Object Code and/or Source Code form
80
+ and, where applicable, its documentation, "as is" when the Licensee accepts
81
+ the Agreement.
82
+
83
+ Initial Software: means the Software in its Source Code and possibly its
84
+ Object Code form and, where applicable, its documentation, "as is" when it
85
+ is first distributed under the terms and conditions of the Agreement.
86
+
87
+ Modified Software: means the Software modified by at least one Contribution.
88
+
89
+ Source Code: means all the Software's instructions and program lines to
90
+ which access is required so as to modify the Software.
91
+
92
+ Object Code: means the binary files originating from the compilation of the
93
+ Source Code.
94
+
95
+ Holder: means the holder(s) of the economic rights over the Initial
96
+ Software.
97
+
98
+ Licensee: means the Software user(s) having accepted the Agreement.
99
+
100
+ Contributor: means a Licensee having made at least one Contribution.
101
+
102
+ Licensor: means the Holder, or any other individual or legal entity, who
103
+ distributes the Software under the Agreement.
104
+
105
+ Contribution: means any or all modifications, corrections, translations,
106
+ adaptations and/or new functions integrated into the Software by any or all
107
+ Contributors, as well as any or all Internal Modules.
108
+
109
+ Module: means a set of sources files including their documentation that
110
+ enables supplementary functions or services in addition to those offered by
111
+ the Software.
112
+
113
+ External Module: means any or all Modules, not derived from the Software,
114
+ so that this Module and the Software run in separate address spaces, with
115
+ one calling the other when they are run.
116
+
117
+ Internal Module: means any or all Module, connected to the Software so that
118
+ they both execute in the same address space.
119
+
120
+ GNU GPL: means the GNU General Public License version 2 or any subsequent
121
+ version, as published by the Free Software Foundation Inc.
122
+
123
+ GNU Affero GPL: means the GNU Affero General Public License version 3 or any
124
+ subsequent version, as published by the Free Software Foundation Inc.
125
+
126
+ EUPL: means the European Union Public License version 1.1 or any subsequent
127
+ version, as published by the European Commission.
128
+
129
+ Parties: mean both the Licensee and the Licensor.
130
+
131
+ These expressions may be used both in singular and plural form.
132
+
133
+
134
+ Article 2 - PURPOSE
135
+
136
+ The purpose of the Agreement is the grant by the Licensor to the Licensee
137
+ of a non-exclusive, transferable and worldwide license for the Software as
138
+ set forth in Article 5 hereinafter for the whole term of the protection
139
+ granted by the rights over said Software.
140
+
141
+
142
+ Article 3 - ACCEPTANCE
143
+
144
+ 3.1 The Licensee shall be deemed as having accepted the terms and
145
+ conditions of this Agreement upon the occurrence of the first of the
146
+ following events:
147
+
148
+ * (i) loading the Software by any or all means, notably, by downloading
149
+ from a remote server, or by loading from a physical medium;
150
+ * (ii) the first time the Licensee exercises any of the rights granted
151
+ hereunder.
152
+
153
+ 3.2 One copy of the Agreement, containing a notice relating to the
154
+ characteristics of the Software, to the limited warranty, and to the fact
155
+ that its use is restricted to experienced users has been provided to the
156
+ Licensee prior to its acceptance as set forth in Article 3.1 hereinabove,
157
+ and the Licensee hereby acknowledges that it has read and understood it.
158
+
159
+
160
+ Article 4 - EFFECTIVE DATE AND TERM
161
+
162
+
163
+ 4.1 EFFECTIVE DATE
164
+
165
+ The Agreement shall become effective on the date when it is accepted by the
166
+ Licensee as set forth in Article 3.1.
167
+
168
+
169
+ 4.2 TERM
170
+
171
+ The Agreement shall remain in force for the entire legal term of protection
172
+ of the economic rights over the Software.
173
+
174
+
175
+ Article 5 - SCOPE OF RIGHTS GRANTED
176
+
177
+ The Licensor hereby grants to the Licensee, who accepts, the following
178
+ rights over the Software for any or all use, and for the term of the
179
+ Agreement, on the basis of the terms and conditions set forth hereinafter.
180
+
181
+ Besides, if the Licensor owns or comes to own one or more patents
182
+ protecting all or part of the functions of the Software or of its
183
+ components, the Licensor undertakes not to enforce the rights granted by
184
+ these patents against successive Licensees using, exploiting or modifying
185
+ the Software. If these patents are transferred, the Licensor undertakes to
186
+ have the transferees subscribe to the obligations set forth in this
187
+ paragraph.
188
+
189
+
190
+ 5.1 RIGHT OF USE
191
+
192
+ The Licensee is authorized to use the Software, without any limitation as
193
+ to its fields of application, with it being hereinafter specified that this
194
+ comprises:
195
+
196
+ 1. permanent or temporary reproduction of all or part of the Software by
197
+ any or all means and in any or all form.
198
+
199
+ 2. loading, displaying, running, or storing the Software on any or all
200
+ medium.
201
+
202
+ 3. entitlement to observe, study or test its operation so as to determine
203
+ the ideas and principles behind any or all constituent elements of said
204
+ Software. This shall apply when the Licensee carries out any or all
205
+ loading, displaying, running, transmission or storage operation as
206
+ regards the Software, that it is entitled to carry out hereunder.
207
+
208
+
209
+ 5.2 ENTITLEMENT TO MAKE CONTRIBUTIONS
210
+
211
+ The right to make Contributions includes the right to translate, adapt,
212
+ arrange, or make any or all modifications to the Software, and the right to
213
+ reproduce the resulting software.
214
+
215
+ The Licensee is authorized to make any or all Contributions to the Software
216
+ provided that it includes an explicit notice that it is the author of said
217
+ Contribution and indicates the date of the creation thereof.
218
+
219
+
220
+ 5.3 RIGHT OF DISTRIBUTION
221
+
222
+ In particular, the right of distribution includes the right to publish,
223
+ transmit and communicate the Software to the general public on any or all
224
+ medium, and by any or all means, and the right to market, either in
225
+ consideration of a fee, or free of charge, one or more copies of the
226
+ Software by any means.
227
+
228
+ The Licensee is further authorized to distribute copies of the modified or
229
+ unmodified Software to third parties according to the terms and conditions
230
+ set forth hereinafter.
231
+
232
+
233
+ 5.3.1 DISTRIBUTION OF SOFTWARE WITHOUT MODIFICATION
234
+
235
+ The Licensee is authorized to distribute true copies of the Software in
236
+ Source Code or Object Code form, provided that said distribution complies
237
+ with all the provisions of the Agreement and is accompanied by:
238
+
239
+ 1. a copy of the Agreement,
240
+
241
+ 2. a notice relating to the limitation of both the Licensor's warranty and
242
+ liability as set forth in Articles 8 and 9,
243
+
244
+ and that, in the event that only the Object Code of the Software is
245
+ redistributed, the Licensee allows effective access to the full Source Code
246
+ of the Software for a period of at least three years from the distribution
247
+ of the Software, it being understood that the additional acquisition cost
248
+ of the Source Code shall not exceed the cost of the data transfer.
249
+
250
+
251
+ 5.3.2 DISTRIBUTION OF MODIFIED SOFTWARE
252
+
253
+ When the Licensee makes a Contribution to the Software, the terms and
254
+ conditions for the distribution of the resulting Modified Software become
255
+ subject to all the provisions of this Agreement.
256
+
257
+ The Licensee is authorized to distribute the Modified Software, in source
258
+ code or object code form, provided that said distribution complies with all
259
+ the provisions of the Agreement and is accompanied by:
260
+
261
+ 1. a copy of the Agreement,
262
+
263
+ 2. a notice relating to the limitation of both the Licensor's warranty and
264
+ liability as set forth in Articles 8 and 9,
265
+
266
+ and, in the event that only the object code of the Modified Software is
267
+ redistributed,
268
+
269
+ 3. a note stating the conditions of effective access to the full source
270
+ code of the Modified Software for a period of at least three years from
271
+ the distribution of the Modified Software, it being understood that the
272
+ additional acquisition cost of the source code shall not exceed the
273
+ cost of the data transfer.
274
+
275
+
276
+ 5.3.3 DISTRIBUTION OF EXTERNAL MODULES
277
+
278
+ When the Licensee has developed an External Module, the terms and
279
+ conditions of this Agreement do not apply to said External Module, that may
280
+ be distributed under a separate license agreement.
281
+
282
+
283
+ 5.3.4 COMPATIBILITY WITH OTHER LICENSES
284
+
285
+ The Licensee can include a code that is subject to the provisions of one of
286
+ the versions of the GNU GPL, GNU Affero GPL and/or EUPL in the Modified or
287
+ unmodified Software, and distribute that entire code under the terms of the
288
+ same version of the GNU GPL, GNU Affero GPL and/or EUPL.
289
+
290
+ The Licensee can include the Modified or unmodified Software in a code that
291
+ is subject to the provisions of one of the versions of the GNU GPL, GNU
292
+ Affero GPL and/or EUPL and distribute that entire code under the terms of
293
+ the same version of the GNU GPL, GNU Affero GPL and/or EUPL.
294
+
295
+
296
+ Article 6 - INTELLECTUAL PROPERTY
297
+
298
+
299
+ 6.1 OVER THE INITIAL SOFTWARE
300
+
301
+ The Holder owns the economic rights over the Initial Software. Any or all
302
+ use of the Initial Software is subject to compliance with the terms and
303
+ conditions under which the Holder has elected to distribute its work and no
304
+ one shall be entitled to modify the terms and conditions for the
305
+ distribution of said Initial Software.
306
+
307
+ The Holder undertakes that the Initial Software will remain ruled at least
308
+ by this Agreement, for the duration set forth in Article 4.2.
309
+
310
+
311
+ 6.2 OVER THE CONTRIBUTIONS
312
+
313
+ The Licensee who develops a Contribution is the owner of the intellectual
314
+ property rights over this Contribution as defined by applicable law.
315
+
316
+
317
+ 6.3 OVER THE EXTERNAL MODULES
318
+
319
+ The Licensee who develops an External Module is the owner of the
320
+ intellectual property rights over this External Module as defined by
321
+ applicable law and is free to choose the type of agreement that shall
322
+ govern its distribution.
323
+
324
+
325
+ 6.4 JOINT PROVISIONS
326
+
327
+ The Licensee expressly undertakes:
328
+
329
+ 1. not to remove, or modify, in any manner, the intellectual property
330
+ notices attached to the Software;
331
+
332
+ 2. to reproduce said notices, in an identical manner, in the copies of the
333
+ Software modified or not.
334
+
335
+ The Licensee undertakes not to directly or indirectly infringe the
336
+ intellectual property rights on the Software of the Holder and/or
337
+ Contributors, and to take, where applicable, vis-à-vis its staff, any and
338
+ all measures required to ensure respect of said intellectual property
339
+ rights of the Holder and/or Contributors.
340
+
341
+
342
+ Article 7 - RELATED SERVICES
343
+
344
+ 7.1 Under no circumstances shall the Agreement oblige the Licensor to
345
+ provide technical assistance or maintenance services for the Software.
346
+
347
+ However, the Licensor is entitled to offer this type of services. The terms
348
+ and conditions of such technical assistance, and/or such maintenance, shall
349
+ be set forth in a separate instrument. Only the Licensor offering said
350
+ maintenance and/or technical assistance services shall incur liability
351
+ therefor.
352
+
353
+ 7.2 Similarly, any Licensor is entitled to offer to its licensees, under
354
+ its sole responsibility, a warranty, that shall only be binding upon
355
+ itself, for the redistribution of the Software and/or the Modified
356
+ Software, under terms and conditions that it is free to decide. Said
357
+ warranty, and the financial terms and conditions of its application, shall
358
+ be subject of a separate instrument executed between the Licensor and the
359
+ Licensee.
360
+
361
+
362
+ Article 8 - LIABILITY
363
+
364
+ 8.1 Subject to the provisions of Article 8.2, the Licensee shall be
365
+ entitled to claim compensation for any direct loss it may have suffered
366
+ from the Software as a result of a fault on the part of the relevant
367
+ Licensor, subject to providing evidence thereof.
368
+
369
+ 8.2 The Licensor's liability is limited to the commitments made under this
370
+ Agreement and shall not be incurred as a result of in particular: (i) loss
371
+ due the Licensee's total or partial failure to fulfill its obligations,
372
+ (ii) direct or consequential loss that is suffered by the Licensee due to
373
+ the use or performance of the Software, and (iii) more generally, any
374
+ consequential loss. In particular the Parties expressly agree that any or
375
+ all pecuniary or business loss (i.e. loss of data, loss of profits,
376
+ operating loss, loss of customers or orders, opportunity cost, any
377
+ disturbance to business activities) or any or all legal proceedings
378
+ instituted against the Licensee by a third party, shall constitute
379
+ consequential loss and shall not provide entitlement to any or all
380
+ compensation from the Licensor.
381
+
382
+
383
+ Article 9 - WARRANTY
384
+
385
+ 9.1 The Licensee acknowledges that the scientific and technical
386
+ state-of-the-art when the Software was distributed did not enable all
387
+ possible uses to be tested and verified, nor for the presence of possible
388
+ defects to be detected. In this respect, the Licensee's attention has been
389
+ drawn to the risks associated with loading, using, modifying and/or
390
+ developing and reproducing the Software which are reserved for experienced
391
+ users.
392
+
393
+ The Licensee shall be responsible for verifying, by any or all means, the
394
+ suitability of the product for its requirements, its good working order,
395
+ and for ensuring that it shall not cause damage to either persons or
396
+ properties.
397
+
398
+ 9.2 The Licensor hereby represents, in good faith, that it is entitled to
399
+ grant all the rights over the Software (including in particular the rights
400
+ set forth in Article 5).
401
+
402
+ 9.3 The Licensee acknowledges that the Software is supplied "as is" by the
403
+ Licensor without any other express or tacit warranty, other than that
404
+ provided for in Article 9.2 and, in particular, without any warranty as to
405
+ its commercial value, its secured, safe, innovative or relevant nature.
406
+
407
+ Specifically, the Licensor does not warrant that the Software is free from
408
+ any error, that it will operate without interruption, that it will be
409
+ compatible with the Licensee's own equipment and software configuration,
410
+ nor that it will meet the Licensee's requirements.
411
+
412
+ 9.4 The Licensor does not either expressly or tacitly warrant that the
413
+ Software does not infringe any third party intellectual property right
414
+ relating to a patent, software or any other property right. Therefore, the
415
+ Licensor disclaims any and all liability towards the Licensee arising out
416
+ of any or all proceedings for infringement that may be instituted in
417
+ respect of the use, modification and redistribution of the Software.
418
+ Nevertheless, should such proceedings be instituted against the Licensee,
419
+ the Licensor shall provide it with technical and legal expertise for its
420
+ defense. Such technical and legal expertise shall be decided on a
421
+ case-by-case basis between the relevant Licensor and the Licensee pursuant
422
+ to a memorandum of understanding. The Licensor disclaims any and all
423
+ liability as regards the Licensee's use of the name of the Software. No
424
+ warranty is given as regards the existence of prior rights over the name of
425
+ the Software or as regards the existence of a trademark.
426
+
427
+
428
+ Article 10 - TERMINATION
429
+
430
+ 10.1 In the event of a breach by the Licensee of its obligations
431
+ hereunder, the Licensor may automatically terminate this Agreement thirty
432
+ (30) days after notice has been sent to the Licensee and has remained
433
+ ineffective.
434
+
435
+ 10.2 A Licensee whose Agreement is terminated shall no longer be authorized
436
+ to use, modify or distribute the Software. However, any licenses that it
437
+ may have granted prior to termination of the Agreement shall remain valid
438
+ subject to their having been granted in compliance with the terms and
439
+ conditions hereof.
440
+
441
+
442
+ Article 11 - MISCELLANEOUS
443
+
444
+
445
+ 11.1 EXCUSABLE EVENTS
446
+
447
+ Neither Party shall be liable for any or all delay, or failure to perform
448
+ the Agreement, that may be attributable to an event of force majeure, an
449
+ act of God or an outside cause, such as defective functioning or
450
+ interruptions of the electricity or telecommunications networks, network
451
+ paralysis following a virus attack, intervention by government authorities,
452
+ natural disasters, water damage, earthquakes, fire, explosions, strikes and
453
+ labor unrest, war, etc.
454
+
455
+ 11.2 Any failure by either Party, on one or more occasions, to invoke one
456
+ or more of the provisions hereof, shall under no circumstances be
457
+ interpreted as being a waiver by the interested Party of its right to
458
+ invoke said provision(s) subsequently.
459
+
460
+ 11.3 The Agreement cancels and replaces any or all previous agreements,
461
+ whether written or oral, between the Parties and having the same purpose,
462
+ and constitutes the entirety of the agreement between said Parties
463
+ concerning said purpose. No supplement or modification to the terms and
464
+ conditions hereof shall be effective as between the Parties unless it is
465
+ made in writing and signed by their duly authorized representatives.
466
+
467
+ 11.4 In the event that one or more of the provisions hereof were to
468
+ conflict with a current or future applicable act or legislative text, said
469
+ act or legislative text shall prevail, and the Parties shall make the
470
+ necessary amendments so as to comply with said act or legislative text. All
471
+ other provisions shall remain effective. Similarly, invalidity of a
472
+ provision of the Agreement, for any reason whatsoever, shall not cause the
473
+ Agreement as a whole to be invalid.
474
+
475
+
476
+ 11.5 LANGUAGE
477
+
478
+ The Agreement is drafted in both French and English and both versions are
479
+ deemed authentic.
480
+
481
+
482
+ Article 12 - NEW VERSIONS OF THE AGREEMENT
483
+
484
+ 12.1 Any person is authorized to duplicate and distribute copies of this
485
+ Agreement.
486
+
487
+ 12.2 So as to ensure coherence, the wording of this Agreement is protected
488
+ and may only be modified by the authors of the License, who reserve the
489
+ right to periodically publish updates or new versions of the Agreement,
490
+ each with a separate number. These subsequent versions may address new
491
+ issues encountered by Free Software.
492
+
493
+ 12.3 Any Software distributed under a given version of the Agreement may
494
+ only be subsequently distributed under the same version of the Agreement or
495
+ a subsequent version, subject to the provisions of Article 5.3.4.
496
+
497
+
498
+ Article 13 - GOVERNING LAW AND JURISDICTION
499
+
500
+ 13.1 The Agreement is governed by French law. The Parties agree to endeavor
501
+ to seek an amicable solution to any disagreements or disputes that may
502
+ arise during the performance of the Agreement.
503
+
504
+ 13.2 Failing an amicable solution within two (2) months as from their
505
+ occurrence, and unless emergency proceedings are necessary, the
506
+ disagreements or disputes shall be referred to the Paris Courts having
507
+ jurisdiction, by the more diligent Party.
@@ -0,0 +1,112 @@
1
+ Metadata-Version: 2.4
2
+ Name: dactim-angio
3
+ Version: 0.1.0
4
+ Summary: À compléter : courte description du package
5
+ Project-URL: Homepage, https://github.com/jdambrin/Dactim-angio
6
+ Project-URL: Repository, https://github.com/jdambrin/Dactim-angio
7
+ Author-email: "J. Dambrine" <julien.dambrine@math.univ-poitiers.fr>, "C. Thomas" <thomas.clement.medecine@gmail.com>
8
+ License-Expression: CECILL-2.1
9
+ License-File: LICENSE
10
+ Keywords: angiography,dicom,medical-imaging,nifti
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
13
+ Requires-Python: >=3.9
14
+ Requires-Dist: matplotlib
15
+ Requires-Dist: nibabel
16
+ Requires-Dist: numpy
17
+ Requires-Dist: pydicom
18
+ Requires-Dist: pyvista
19
+ Requires-Dist: scikit-image
20
+ Requires-Dist: scikit-learn
21
+ Requires-Dist: scipy
22
+ Description-Content-Type: text/markdown
23
+
24
+ # Dactim-angio
25
+
26
+ > ⚠️ **À compléter** : une phrase de description officielle du projet (objectif scientifique, contexte de l'équipe).
27
+
28
+ `dactim_angio` is a Python research library for **angiographic image processing**, providing
29
+ spatial grids, projective geometry, radial basis function interpolation, and differentiable
30
+ similarity metrics — building blocks for **2D/3D registration and reconstruction** of vascular imaging.
31
+
32
+ ## Features
33
+
34
+ - **Spatial grids** (`dactim_angio.spatial.grid`)
35
+ - Abstract `SpatialGrid` with `push`/`pull` coordinate transforms and finite-difference gradients
36
+ - `SpatialGridAffine` — affine-mapped volumes, loadable directly from NIfTI files
37
+ - `SpatialGrid_XA` — X-ray angiography grids built from NIfTI + JSON metadata (projection center, etc.)
38
+ - Gaussian image pyramids, rescaling, scalar-field transfer between grids, and PyVista export
39
+ - **Projective geometry** (`dactim_angio.spatial.geom`)
40
+ - `PointCloud` and `RayFan` primitives with KD-tree / BallTree spatial indexing
41
+ - Sparse point–point, ray–ray and point–ray distance matrices (with analytic derivatives)
42
+ - `Camera` model with field-of-view frustum and visibility queries
43
+ - Parametrized affine transforms (rotation/translation) with closed-form derivatives
44
+ - **Radial basis function interpolation** (`dactim_angio.spatial.RBF`)
45
+ - `GaussianRBF` over point clouds — evaluation on points or rays, with shape derivatives
46
+ - `GaussianRBF_rays` over angular ray fans, plus L² / H¹₀ norm matrices
47
+ - **Differentiable similarity metrics** (`dactim_angio.metrics`)
48
+ - Mutual information (kernel density estimator), Kraskov joint entropy, correlation, MSE
49
+ - Each returns the metric value **and** its gradients, ready for gradient-based optimization
50
+
51
+ ## Installation
52
+
53
+ > Requires Python ≥ 3.9.
54
+
55
+ From source:
56
+
57
+ ```bash
58
+ git clone https://github.com/jdambrin/Dactim-angio.git
59
+ cd Dactim-angio
60
+ pip install .
61
+ ```
62
+
63
+ Once published on PyPI:
64
+
65
+ ```bash
66
+ pip install dactim-angio
67
+ ```
68
+
69
+ ## Quick start
70
+
71
+ > The snippet below is **illustrative** and follows the public API — adapt paths and field names to your data.
72
+
73
+ ```python
74
+ from dactim_angio.spatial.grid import SpatialGridAffine
75
+ from dactim_angio.metrics import mse
76
+
77
+ # Load a 3D volume from a NIfTI file
78
+ grid = SpatialGridAffine.fromNifti("patient.nii.gz")
79
+ print(grid) # shape + scalar-field summary
80
+
81
+ # Export to PyVista for 3D visualization
82
+ mesh = grid.toPyvista()
83
+
84
+ # Compute a differentiable similarity metric between two fields
85
+ value, grad_x, grad_y = mse(fixed_field, moving_field)
86
+ ```
87
+
88
+ ## Package structure
89
+
90
+ ```
91
+ dactim_angio/
92
+ ├── metrics.py # similarity metrics with analytic gradients
93
+ └── spatial/
94
+ ├── geom.py # point clouds, ray fans, cameras, affine transforms
95
+ ├── grid.py # spatial grids, NIfTI/DICOM I/O, pyramids
96
+ └── RBF.py # Gaussian RBF interpolation
97
+ ```
98
+
99
+ ## Dependencies
100
+
101
+ `numpy`, `scipy`, `matplotlib`, `nibabel`, `pydicom`, `pyvista`, `scikit-image`, `scikit-learn`.
102
+ These are installed automatically with the package.
103
+
104
+ ## License
105
+
106
+ This software is distributed under the **CeCILL Free Software License Agreement v2.1**
107
+ (see the [`LICENSE`](LICENSE) file). CeCILL is a copyleft license, GPL-compatible, governed
108
+ by French law, authored by CEA, CNRS and Inria.
109
+
110
+ ## Citation
111
+
112
+ > ⚠️ **Optionnel** : si ce travail accompagne une publication, ajoute ici la référence à citer.