imicpe 1.0.2__py3-none-any.whl → 1.0.4__py3-none-any.whl
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.
- imicpe/_version.py +1 -1
- imicpe/optim/metrics.py +1 -1
- imicpe/optim/operators.py +17 -16
- {imicpe-1.0.2.dist-info → imicpe-1.0.4.dist-info}/METADATA +3 -2
- {imicpe-1.0.2.dist-info → imicpe-1.0.4.dist-info}/RECORD +8 -8
- {imicpe-1.0.2.dist-info → imicpe-1.0.4.dist-info}/WHEEL +1 -1
- {imicpe-1.0.2.dist-info → imicpe-1.0.4.dist-info/licenses}/LICENSE +0 -0
- {imicpe-1.0.2.dist-info → imicpe-1.0.4.dist-info}/top_level.txt +0 -0
imicpe/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__="1.0.
|
|
1
|
+
__version__="1.0.4"
|
imicpe/optim/metrics.py
CHANGED
imicpe/optim/operators.py
CHANGED
|
@@ -112,26 +112,27 @@ def Lt(x):
|
|
|
112
112
|
lap = ndimage.correlate(x,ker,mode='nearest')
|
|
113
113
|
return lap
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
def generateDiff3D(vert, faces, dtype):
|
|
116
|
+
"""
|
|
117
|
+
generateDiff3D Génère la matrice de différentiation de type DTYPE (ordre 1 ou 2) en 3D
|
|
117
118
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
Args:
|
|
120
|
+
VERT (numpy.ndarray) matrice Nx3 dont la i-ème ligne correspond au vecteur
|
|
121
|
+
de coordonnées (X,Y,Z) du i-ème point du maillage
|
|
122
|
+
FACES (numpy.ndarray) matrice Nx3 dont la i-ème ligne donne les numéros des
|
|
123
|
+
3 points composant un triangle du maillage
|
|
124
|
+
DTYPE(str) 'gradient', 'laplacian'
|
|
124
125
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
Returns:
|
|
127
|
+
(numpy.ndarray) matrice 3D de différentiation de type DTYPE
|
|
128
|
+
"""
|
|
128
129
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
if dtype == 'gradient':
|
|
131
|
+
matG = igl.grad(vert, faces)
|
|
132
|
+
elif dtype == 'laplacien':
|
|
133
|
+
matG = igl.cotmatrix(vert, faces)
|
|
133
134
|
|
|
134
|
-
|
|
135
|
+
return (matG/np.amax(matG)).toarray()
|
|
135
136
|
|
|
136
137
|
|
|
137
138
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: imicpe
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Summary: Toolbox for Maths,Signal,Image Teaching @ CPE
|
|
5
5
|
Author-email: Marion Foare <marion.foare@cpe.fr>, Eric Van Reeth <eric.vanreeth@cpe.fr>, Arthur Gautheron <arthur.gautheron@cpe.fr>
|
|
6
6
|
License: MIT License
|
|
@@ -20,6 +20,7 @@ Requires-Dist: torchvision
|
|
|
20
20
|
Requires-Dist: tqdm
|
|
21
21
|
Requires-Dist: PyWavelets
|
|
22
22
|
Requires-Dist: scikit-image
|
|
23
|
+
Dynamic: license-file
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
A toolbox used for practical sessions at [CPE Lyon](https://www.cpe.fr/).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
imicpe/__init__.py,sha256=WjDmvecyDIyJLYp4rCV9vsSYbQDc4L1EpYqORvEXliI,33
|
|
2
|
-
imicpe/_version.py,sha256=
|
|
2
|
+
imicpe/_version.py,sha256=_Mzv05Nk6f7wR8F5KqE69kN9PfdC4uxj5YvG98nbUcs,20
|
|
3
3
|
imicpe/cs/__init__.py,sha256=fLe1o5jNvrB4qEVBE6amEV9i3NFwM3E_uGiiiHXrph0,339
|
|
4
4
|
imicpe/cs/l1.py,sha256=5bTNM8JG8J8srTamh-gl3ShhFoJjqCvVwlteN_M6Uak,3236
|
|
5
5
|
imicpe/cs/masks.py,sha256=5ehQ-QnYY4trBt7BIx0Pp8DUa3x5KApkc7TPp9LA9Pc,2030
|
|
@@ -8,13 +8,13 @@ imicpe/cs/operators.py,sha256=pTA8gu_17yoBD4Hs7Cvg0PWUX4xrcMr6DJxyNYX9yBA,9028
|
|
|
8
8
|
imicpe/cs/shepp_logan_phantom.py,sha256=_RDHimZI6R8uyAwXNyB3BldYjCiNDRorDmPYoJR0T6Q,485
|
|
9
9
|
imicpe/cs/tikhonov.py,sha256=NokBVdMsErWrf4pHZ3jWFwyRVaP7Z9z4qqujuisjyF4,2488
|
|
10
10
|
imicpe/optim/__init__.py,sha256=rkguPFq7gdmBgm_Xrry2yr1oquEIxE00On2emjRMgZE,344
|
|
11
|
-
imicpe/optim/metrics.py,sha256=
|
|
12
|
-
imicpe/optim/operators.py,sha256=
|
|
11
|
+
imicpe/optim/metrics.py,sha256=lcXT5gLtIdGARr5Lq1fWvVQNyqkKgy8BQsV4cHmbnvM,187
|
|
12
|
+
imicpe/optim/operators.py,sha256=qEvFqgmg5uDkdd0MU2bAxIq8Erg6BZsdtnHn0SwXASY,10642
|
|
13
13
|
imicpe/optim/pnnDataset.py,sha256=PFh5u0SXx761O6N6vVfWfEDmzmCm87eYzAL7mWHBRrw,3971
|
|
14
14
|
imicpe/optim/pnnTrainer.py,sha256=3ygh9XwFJN7jMPsEG3LHLa8sgBbDd9Yu_QWg4ZtM_DM,4571
|
|
15
15
|
imicpe/optim/pnnUtils.py,sha256=LXU7wRfuEi6t-2VG2NStPAOzu19OKTxzNNnbHESpC2U,1523
|
|
16
|
-
imicpe-1.0.
|
|
17
|
-
imicpe-1.0.
|
|
18
|
-
imicpe-1.0.
|
|
19
|
-
imicpe-1.0.
|
|
20
|
-
imicpe-1.0.
|
|
16
|
+
imicpe-1.0.4.dist-info/licenses/LICENSE,sha256=ACwmltkrXIz5VsEQcrqljq-fat6ZXAMepjXGoe40KtE,1069
|
|
17
|
+
imicpe-1.0.4.dist-info/METADATA,sha256=R49h9z7HFp_ZVQF8HiVz68IaHysJFi0eXP-26oOk4Vk,1339
|
|
18
|
+
imicpe-1.0.4.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
19
|
+
imicpe-1.0.4.dist-info/top_level.txt,sha256=6_gSXCYolzjXHaIDeAsZ_M3nLXdqrMKt48XCz3reJc0,7
|
|
20
|
+
imicpe-1.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|