imicpe 1.0.3__py3-none-any.whl → 1.0.5__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.3"
1
+ __version__="1.0.5"
imicpe/optim/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  from .metrics import mse, snr
2
- from .operators import Id, D, Dt, L, Lt, generatePSF, A, At, S, St, opNorm, matNorm
2
+ from .operators import Id, D, Dt, L, Lt, generateDiff3D, generatePSF, A, At, S, St, opNorm, matNorm
3
3
  from .pnnDataset import BSDSDataset, NoisyDataset
4
4
  from .pnnTrainer import Trainer, Metrics
5
5
  from .pnnUtils import chooseDevice, torchImg2Numpy, getData
imicpe/optim/operators.py CHANGED
@@ -1,6 +1,6 @@
1
1
  import numpy as np
2
2
  from scipy import ndimage
3
- #import igl
3
+ import igl
4
4
 
5
5
  ############################################################
6
6
  ## identity operator
@@ -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.2
1
+ Metadata-Version: 2.4
2
2
  Name: imicpe
3
- Version: 1.0.3
3
+ Version: 1.0.5
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=PurjkpFyndupNN0RDatRKZ800wm3YP1lj7082lotuyk,20
2
+ imicpe/_version.py,sha256=EGbJfggePkENdsir9Nd4ypGyde4ARoyWAw7YXguldLw,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
@@ -7,14 +7,14 @@ imicpe/cs/metrics.py,sha256=DuUYpW7s1LkZTDV32D5K4wdSRXpH1Ymunjp2vq6kzfA,148
7
7
  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
- imicpe/optim/__init__.py,sha256=rkguPFq7gdmBgm_Xrry2yr1oquEIxE00On2emjRMgZE,344
10
+ imicpe/optim/__init__.py,sha256=m3A1xTbMnHMqOx8EFWi71BRyVmlCdVL4qtNYWct0rjQ,360
11
11
  imicpe/optim/metrics.py,sha256=lcXT5gLtIdGARr5Lq1fWvVQNyqkKgy8BQsV4cHmbnvM,187
12
- imicpe/optim/operators.py,sha256=BbyqE9ARZF-q8EkxyDOv1V8Rlz52t9sbo2gI22zQAzA,10648
12
+ imicpe/optim/operators.py,sha256=PxZ4nBY6XGuj64ZhbGgsq73ejeA4hjZb5_Qk4ZfTpz8,10641
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.3.dist-info/LICENSE,sha256=ACwmltkrXIz5VsEQcrqljq-fat6ZXAMepjXGoe40KtE,1069
17
- imicpe-1.0.3.dist-info/METADATA,sha256=k6jnrzrD9k8U17738nQX1sgwKQnQ0h4DEFB-tBKkAYs,1317
18
- imicpe-1.0.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
19
- imicpe-1.0.3.dist-info/top_level.txt,sha256=6_gSXCYolzjXHaIDeAsZ_M3nLXdqrMKt48XCz3reJc0,7
20
- imicpe-1.0.3.dist-info/RECORD,,
16
+ imicpe-1.0.5.dist-info/licenses/LICENSE,sha256=ACwmltkrXIz5VsEQcrqljq-fat6ZXAMepjXGoe40KtE,1069
17
+ imicpe-1.0.5.dist-info/METADATA,sha256=zP94GkF4CuXR19Sf_5w-OqmLDpm8-b4MK-6J82F0yLQ,1339
18
+ imicpe-1.0.5.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
19
+ imicpe-1.0.5.dist-info/top_level.txt,sha256=6_gSXCYolzjXHaIDeAsZ_M3nLXdqrMKt48XCz3reJc0,7
20
+ imicpe-1.0.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5