imicpe 1.0.3__tar.gz → 1.0.5__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.
Files changed (27) hide show
  1. {imicpe-1.0.3 → imicpe-1.0.5}/PKG-INFO +3 -2
  2. {imicpe-1.0.3 → imicpe-1.0.5}/pyproject.toml +1 -1
  3. imicpe-1.0.5/src/imicpe/_version.py +1 -0
  4. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/optim/__init__.py +1 -1
  5. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/optim/operators.py +18 -17
  6. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe.egg-info/PKG-INFO +3 -2
  7. imicpe-1.0.3/src/imicpe/_version.py +0 -1
  8. {imicpe-1.0.3 → imicpe-1.0.5}/DESCRIPTION.md +0 -0
  9. {imicpe-1.0.3 → imicpe-1.0.5}/LICENSE +0 -0
  10. {imicpe-1.0.3 → imicpe-1.0.5}/README.md +0 -0
  11. {imicpe-1.0.3 → imicpe-1.0.5}/setup.cfg +0 -0
  12. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/__init__.py +0 -0
  13. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/cs/__init__.py +0 -0
  14. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/cs/l1.py +0 -0
  15. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/cs/masks.py +0 -0
  16. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/cs/metrics.py +0 -0
  17. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/cs/operators.py +0 -0
  18. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/cs/shepp_logan_phantom.py +0 -0
  19. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/cs/tikhonov.py +0 -0
  20. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/optim/metrics.py +0 -0
  21. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/optim/pnnDataset.py +0 -0
  22. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/optim/pnnTrainer.py +0 -0
  23. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe/optim/pnnUtils.py +0 -0
  24. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe.egg-info/SOURCES.txt +0 -0
  25. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe.egg-info/dependency_links.txt +0 -0
  26. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe.egg-info/requires.txt +0 -0
  27. {imicpe-1.0.3 → imicpe-1.0.5}/src/imicpe.egg-info/top_level.txt +0 -0
@@ -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/).
@@ -14,7 +14,7 @@ mypkg = ["*.txt", "*.mat", "*.npy"]
14
14
  #[tool.setuptools_scm]
15
15
 
16
16
  [project]
17
- version="1.0.3"
17
+ version="1.0.5"
18
18
  name = "imicpe"
19
19
  authors = [
20
20
  { name="Marion Foare", email="marion.foare@cpe.fr" },
@@ -0,0 +1 @@
1
+ __version__="1.0.5"
@@ -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
@@ -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 +0,0 @@
1
- __version__="1.0.3"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes