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 CHANGED
@@ -1 +1 @@
1
- __version__="1.0.2"
1
+ __version__="1.0.4"
imicpe/optim/metrics.py CHANGED
@@ -2,7 +2,7 @@ import numpy as np
2
2
  import torch
3
3
 
4
4
  def mse(I,ref):
5
- return np.round(np.sum((I-ref)**2)/I.size,2)
5
+ return np.round(np.sum((I-ref)**2)/I.size,5)
6
6
 
7
7
  def snr(I,ref):
8
8
  return np.round(10* np.log10(np.sum(ref**2)/np.sum((I-ref)**2)),2)
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
- # def generateDiff3D(vert, faces, dtype):
116
- # """Génère la matrice de différentiation de type DTYPE (ordre 1 ou 2) en 3D
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
- # Args:
119
- # VERT (numpy.ndarray) matrice Nx3 dont la i-ème ligne correspond au vecteur
120
- # de coordonnées (X,Y,Z) du i-ème point du maillage
121
- # FACES (numpy.ndarray) matrice Nx3 dont la i-ème ligne donne les numéros des
122
- # 3 points composant un triangle du maillage
123
- # DTYPE(str) 'gradient', 'laplacian'
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
- # Returns:
126
- # (numpy.ndarray) matrice 3D de différentiation de type DTYPE
127
- # """
126
+ Returns:
127
+ (numpy.ndarray) matrice 3D de différentiation de type DTYPE
128
+ """
128
129
 
129
- # if dtype == 'gradient':
130
- # matG = igl.grad(vert, faces)
131
- # elif dtype == 'laplacien':
132
- # matG = igl.cotmatrix(vert, faces)
130
+ if dtype == 'gradient':
131
+ matG = igl.grad(vert, faces)
132
+ elif dtype == 'laplacien':
133
+ matG = igl.cotmatrix(vert, faces)
133
134
 
134
- # return (matG/np.amax(matG)).toarray()
135
+ return (matG/np.amax(matG)).toarray()
135
136
 
136
137
 
137
138
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: imicpe
3
- Version: 1.0.2
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=Zy3VGxZ5T9ift8CxpyHfKfgeKxTkOc3xUXz-mAr9Yq8,20
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=AHqudKDch1_jc7X2_9hz30RamEqfQ132GXr3qW81VPY,187
12
- imicpe/optim/operators.py,sha256=BbyqE9ARZF-q8EkxyDOv1V8Rlz52t9sbo2gI22zQAzA,10648
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.2.dist-info/LICENSE,sha256=ACwmltkrXIz5VsEQcrqljq-fat6ZXAMepjXGoe40KtE,1069
17
- imicpe-1.0.2.dist-info/METADATA,sha256=sAYb5GOUk9hdw7Iffmc1tZjLfUbnZ_uIWbRTIUc_nLA,1317
18
- imicpe-1.0.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
19
- imicpe-1.0.2.dist-info/top_level.txt,sha256=6_gSXCYolzjXHaIDeAsZ_M3nLXdqrMKt48XCz3reJc0,7
20
- imicpe-1.0.2.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5