cir_R = int(Ro * 2)
inner_r = int(Ro - 0.5 - len(img))
for i in range(1, cir_R - 1):
    for j in range(1, cir_R - 1):
        if cir[i][j] == 0:
            dx = int(i - Ro)
dy = int(j - Ro)
pix_r2 = dx * dx + dy * dy
if pix_r2 <= Ro * Ro and pix_r2 >= inner_r * inner_r:
    cir[i][j] = (cir[i - 1][j] + cir[i + 1][j] + cir[i][j - 1] + cir[i][j + 1]
        ) / 4
shom_im(cir)
Wrap image around a circle