mwxlib 0.96.6__py3-none-any.whl → 0.96.7__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.
Potentially problematic release.
This version of mwxlib might be problematic. Click here for more details.
- mwx/framework.py +1 -1
- mwx/matplot2lg.py +5 -7
- {mwxlib-0.96.6.dist-info → mwxlib-0.96.7.dist-info}/METADATA +1 -1
- {mwxlib-0.96.6.dist-info → mwxlib-0.96.7.dist-info}/RECORD +7 -7
- {mwxlib-0.96.6.dist-info → mwxlib-0.96.7.dist-info}/LICENSE +0 -0
- {mwxlib-0.96.6.dist-info → mwxlib-0.96.7.dist-info}/WHEEL +0 -0
- {mwxlib-0.96.6.dist-info → mwxlib-0.96.7.dist-info}/top_level.txt +0 -0
mwx/framework.py
CHANGED
mwx/matplot2lg.py
CHANGED
|
@@ -275,19 +275,17 @@ class Histogram(LinePlot):
|
|
|
275
275
|
return [0,255]
|
|
276
276
|
|
|
277
277
|
def calc(self, frame):
|
|
278
|
+
BINS = 256
|
|
278
279
|
img = frame.image
|
|
279
280
|
if img.dtype == np.uint8:
|
|
280
281
|
## 整数ビット画像は,高速なビンづめ法で計算する
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
bins = np.arange(256)
|
|
282
|
+
hist = np.bincount(img.ravel(), minlength=BINS)
|
|
283
|
+
bins = np.arange(BINS)
|
|
284
284
|
else:
|
|
285
|
-
|
|
286
|
-
## hist は [min:max] 段階 (BINS=256 コ) で保持されている
|
|
285
|
+
## hist は [min:max] 段階 (256 BINS) で保持されている
|
|
287
286
|
## bins は 端数含め [0:BINS] (257 コ) あるので1個減す
|
|
288
287
|
hist, bins = np.histogram(img, BINS)
|
|
289
288
|
bins = np.linspace(img.min(), img.max(), BINS)
|
|
290
|
-
|
|
291
289
|
return bins, hist
|
|
292
290
|
|
|
293
291
|
def hplot(self, frame):
|
|
@@ -339,7 +337,7 @@ class Histogram(LinePlot):
|
|
|
339
337
|
name = frame.name,
|
|
340
338
|
type = frame.buffer.dtype,
|
|
341
339
|
mode = "bincount",
|
|
342
|
-
bins = (i, j
|
|
340
|
+
bins = (i, j)))
|
|
343
341
|
else:
|
|
344
342
|
self.modeline.write("")
|
|
345
343
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
mwx/__init__.py,sha256=nN62CGTWjME7Zz2h-jIRB8MxwuErIkHPGrlBzydkF0o,643
|
|
2
2
|
mwx/bookshelf.py,sha256=CjcgtHC33KR5mHp1lW6Bqfndpzr7hC8ICkFihw4kM3g,5134
|
|
3
3
|
mwx/controls.py,sha256=s6yJzQyYnjCzcjXa6nbTJncxzpMI0E5zYWPn3-cFy5Q,48378
|
|
4
|
-
mwx/framework.py,sha256=
|
|
4
|
+
mwx/framework.py,sha256=t1d0wXned_XQV5uFYZEdzFhE3d-eCvFb0GIn3W0Uz9E,75227
|
|
5
5
|
mwx/graphman.py,sha256=XoD_wbt5wrmiRf8Q3lpn_eklakE2K-rLfpzfXG1L-Pc,71269
|
|
6
6
|
mwx/images.py,sha256=_-Eh3xF7Khu42ivkYp97NXIzSNGbjcidqtWjZQFGtqE,47827
|
|
7
7
|
mwx/matplot2.py,sha256=-G7z0Osozm9NjLfXvX5UcdFviwbNUktjbd904_g-PqQ,33516
|
|
8
8
|
mwx/matplot2g.py,sha256=22rpdkqJQEJADINPaG5htACutbt8oG1ewO8LMpxaqH4,65237
|
|
9
|
-
mwx/matplot2lg.py,sha256=
|
|
9
|
+
mwx/matplot2lg.py,sha256=4KEkl5407P_D4xHKmar6j_cfIBBCEGkm7wC_3CzgxRI,27303
|
|
10
10
|
mwx/mgplt.py,sha256=ITzxA97yDwr_35BUk5OqnyskSuKVDbpf2AQCKY1jHTI,5671
|
|
11
11
|
mwx/nutshell.py,sha256=cdrg3cuF6AVU2OuR3QswSiTWrTsGIVaqrBSMuxJIjdE,137364
|
|
12
12
|
mwx/utilus.py,sha256=8GK_2mGY08DVN5_SGWynLKQEJsCKqvqWTDToar1XozM,37333
|
|
@@ -21,8 +21,8 @@ mwx/plugins/frame_listview.py,sha256=7LDAYbl5NvmD4Ehc690IrTbcRgCALRWeLVVOT9cm9Do
|
|
|
21
21
|
mwx/plugins/line_profile.py,sha256=--9NIc3x5EfRB3L59JvD7rzENQHyiYfu7wWJo6AuMkA,820
|
|
22
22
|
mwx/py/__init__.py,sha256=xykgfOytOwNuvXsfkLoumFZSTN-iBsHOjczYXngjmUE,12
|
|
23
23
|
mwx/py/filling.py,sha256=KaHooM32hrGGgqw75Cbt8lAvACwC6RXadob9LGgNnEc,16806
|
|
24
|
-
mwxlib-0.96.
|
|
25
|
-
mwxlib-0.96.
|
|
26
|
-
mwxlib-0.96.
|
|
27
|
-
mwxlib-0.96.
|
|
28
|
-
mwxlib-0.96.
|
|
24
|
+
mwxlib-0.96.7.dist-info/LICENSE,sha256=PGtRKCaTkmUDlBQwpptJAxJtdqxIUtAmdBsaT9nUVkA,1091
|
|
25
|
+
mwxlib-0.96.7.dist-info/METADATA,sha256=dJYCzwaGevIma7TaUYe9whPB1wOXX_-V6rRmUvJgq6g,1880
|
|
26
|
+
mwxlib-0.96.7.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
|
27
|
+
mwxlib-0.96.7.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
|
|
28
|
+
mwxlib-0.96.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|