MCPcopy Create free account
hub / github.com/CompVis/zigma / hilbert_path

Function hilbert_path

utils/utils_zigzag.py:285–302  ·  view source on GitHub ↗
(N=16)

Source from the content-addressed store, hash-verified

283
284
285def hilbert_path(N=16):
286
287 res = gilbert_zigzag_path(N)
288 res_mirror = np.transpose(res)
289 ro90 = np.rot90(res, 1)
290 ro90_mirror = np.transpose(ro90)
291 ro180 = np.rot90(res, 2)
292 ro180_mirror = np.transpose(ro180)
293 ro270 = np.rot90(res, 3)
294 ro270_mirror = np.transpose(ro270)
295 res = [res, res_mirror, ro90, ro90_mirror, ro180, ro180_mirror, ro270, ro270_mirror]
296 print("***")
297 for _ in res:
298 print(_)
299 res = [_.flatten() for _ in res]
300 for _ in res:
301 print(_.shape)
302 return res
303
304
305def draw_pineao_curve():

Callers 1

__init__Method · 0.90

Calls 1

gilbert_zigzag_pathFunction · 0.70

Tested by

no test coverage detected