homa 0.23__py3-none-any.whl → 0.24__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 homa might be problematic. Click here for more details.
- homa/helpers/alias.py +2 -2
- homa/main.py +0 -1
- {homa-0.23.dist-info → homa-0.24.dist-info}/METADATA +20 -1
- {homa-0.23.dist-info → homa-0.24.dist-info}/RECORD +7 -7
- {homa-0.23.dist-info → homa-0.24.dist-info}/LICENSE +0 -0
- {homa-0.23.dist-info → homa-0.24.dist-info}/WHEEL +0 -0
- {homa-0.23.dist-info → homa-0.24.dist-info}/top_level.txt +0 -0
homa/helpers/alias.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
from ..classes.Repository import Repository
|
|
2
|
-
from ..classes import Collection
|
|
2
|
+
from ..classes.Collection import Collection
|
|
3
3
|
from typing import List
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
def repo(key: str|None = None):
|
|
6
|
+
def repo(key: str | None = None):
|
|
7
7
|
if key is None:
|
|
8
8
|
return Repository.images
|
|
9
9
|
|
homa/main.py
CHANGED
|
@@ -53,7 +53,6 @@ def show(key: any = None, wait: bool = False, window: str = "Homa Window") -> No
|
|
|
53
53
|
|
|
54
54
|
if key is not None and not isinstance(key, str):
|
|
55
55
|
Repository.imshow(window, key)
|
|
56
|
-
Repository.windows[key] = window
|
|
57
56
|
|
|
58
57
|
elif key is None:
|
|
59
58
|
for key, image in Repository.images.items():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: homa
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.24
|
|
4
4
|
Maintainer: Taha Shieenavaz
|
|
5
5
|
Maintainer-email: tahashieenavaz@gmail.com
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -27,6 +27,10 @@ Images could be loaded with the `image` helper, that accepts the file name and a
|
|
|
27
27
|
from homa import *
|
|
28
28
|
|
|
29
29
|
image("horse.jpg", "horse")
|
|
30
|
+
show("horse", wait=True)
|
|
31
|
+
|
|
32
|
+
# or alternatively
|
|
33
|
+
showWait("horse")
|
|
30
34
|
```
|
|
31
35
|
|
|
32
36
|
Alternatively, following code will load the file into the repository with a key of everything before the last in the filename.
|
|
@@ -35,6 +39,7 @@ Alternatively, following code will load the file into the repository with a key
|
|
|
35
39
|
from homa import *
|
|
36
40
|
|
|
37
41
|
image("horse.jpg") # stored as "horse"
|
|
42
|
+
showWait("horse")
|
|
38
43
|
```
|
|
39
44
|
|
|
40
45
|
## Smoothing
|
|
@@ -67,6 +72,20 @@ gaussian("horse", 9, "gaussian blurred horse") # as a new key in the repositor
|
|
|
67
72
|
showWait("gaussian blurred horse")
|
|
68
73
|
```
|
|
69
74
|
|
|
75
|
+
### Median Blur
|
|
76
|
+
|
|
77
|
+
```python
|
|
78
|
+
from homa import *
|
|
79
|
+
|
|
80
|
+
image("horse.jpg")
|
|
81
|
+
|
|
82
|
+
median("horse", 7) # rewrites "horse" key
|
|
83
|
+
median("horse", (7, 19)) # rewrites "horse" key
|
|
84
|
+
median("horse", 9, "median blurred horse") # as a new key in the repository
|
|
85
|
+
|
|
86
|
+
showWait("median blurred horse")
|
|
87
|
+
```
|
|
88
|
+
|
|
70
89
|
## Stacking
|
|
71
90
|
|
|
72
91
|
```python
|
|
@@ -4,7 +4,7 @@ homa/constants.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
4
4
|
homa/events.py,sha256=Q077YcaM8-VjfKYhPQCQ7dasdu-mACKMf5cupiLNDoY,1946
|
|
5
5
|
homa/filters.py,sha256=lEwUZtCUSH59D4J9lWQ-d0ObSk_ikZBGRnNAZWMnpPo,1058
|
|
6
6
|
homa/helpers.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
homa/main.py,sha256=
|
|
7
|
+
homa/main.py,sha256=qba9W9x3o3iA6XeQoUAoXPLiXX_WA-7icdcBvSOvMI8,1733
|
|
8
8
|
homa/orientation.py,sha256=kR7mEmbjCdyxNeQ7UuGpwTFD6EaNbXmErzaln3gpzfk,804
|
|
9
9
|
homa/shapes.py,sha256=MVZWkOtqkby8KiL04mK4nrirDGeQM3k8dDEZIpDt8AU,283
|
|
10
10
|
homa/spaces.py,sha256=yEIXofkM0ebvRBbRp-e7epETHW_xmwSrCoTyYUYV-uA,460
|
|
@@ -13,13 +13,13 @@ homa/classes/Logger.py,sha256=2VjXJzBLMW5joArFpu2wGrbWUw7S-77z7LNhKUG1Iow,93
|
|
|
13
13
|
homa/classes/Repository.py,sha256=w7hlbj6QIWNV2lWNs5-j6OXacSm6UGQ9DtX1zxaUA7c,589
|
|
14
14
|
homa/classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
homa/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
-
homa/helpers/alias.py,sha256=
|
|
16
|
+
homa/helpers/alias.py,sha256=AI-e36ZzAiicbXbbNyuBzgtY5t3k_Tq8kJVV2kUoDwg,301
|
|
17
17
|
homa/helpers/environment.py,sha256=I7rD9B5zv3W8lkspntcshm5PZZRRSW81OqIjKOdZW6U,78
|
|
18
18
|
homa/helpers/kernel.py,sha256=sAdIW92coy0BoAPlk5Ez4sE5iFU207TU7OfjP7sPSkM,330
|
|
19
19
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
tests/test_images.py,sha256=4k5tDcMc2YZOKAq3wNQnbJ_cO1Y_DQ-YUn82yzy__ww,772
|
|
21
|
-
homa-0.
|
|
22
|
-
homa-0.
|
|
23
|
-
homa-0.
|
|
24
|
-
homa-0.
|
|
25
|
-
homa-0.
|
|
21
|
+
homa-0.24.dist-info/LICENSE,sha256=js3WDbJn9k5EN6sy1uuP2QBXxyPgS5DjO4Bf5yE35hQ,1072
|
|
22
|
+
homa-0.24.dist-info/METADATA,sha256=3eqtheZ4LrpJ_l3mY6S2SFDP16WloldQOK_LvnqaduI,2472
|
|
23
|
+
homa-0.24.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
24
|
+
homa-0.24.dist-info/top_level.txt,sha256=i1-Cx_lkcOD5QJEK9JYp1uDEBhtshAN7No-99mhpOZ0,11
|
|
25
|
+
homa-0.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|