MCPcopy 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_neighbourFunction · 0.95
resize.pyFile · 0.45

Calls 2

get_yMethod · 0.95
get_xMethod · 0.95

Tested by 1

test_nearest_neighbourFunction · 0.76