Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ process
Method
process
digital_image_processing/resize/resize.py:30–33 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
28
)
29
30
def
process(self):
31
for
i in range(self.dst_h):
32
for
j in range(self.dst_w):
33
self.output[i][j] = self.img[self.get_y(i)][self.get_x(j)]
34
35
def
get_x(self, x: int) -> int:
36
""
"
Callers
2
test_nearest_neighbour
Function · 0.95
resize.py
File · 0.45
Calls
2
get_y
Method · 0.95
get_x
Method · 0.95
Tested by
1
test_nearest_neighbour
Function · 0.76