cp /workspace/scratch/rugmatte.py /workspace/scratch/rugmatte0.py; python - <<'PY'
p='/workspace/scratch/rugmatte.py';s=open(p).read();s=s.replace("a=a**2.2;b=b**2.2",'''# Reconstruct the small chart-obscured upper floor band from the product frame's clear lateral floor.
# A row-dependent interpolation follows the very shallow perspective of the floorboards.
left=np.median(a[520:720,885:905],axis=1);right=np.median(a[520:720,1495:1515],axis=1)
ys=np.arange(200)
# Match the plank profile with the observed four-pixel fall across this span.
for x in range(950,1460):
 f=(x-895)/610
 for c in range(3):
  lv=np.interp(ys-f*6,ys,left[:,c]);rv=np.interp(ys+(1-f)*6,ys,right[:,c])
  b[520:720,x,c]=(1-f)*lv+f*rv
a=a**2.2;b=b**2.2''');open(p,'w').write(s)
PY
OPENBLAS_NUM_THREADS=1 python /workspace/scratch/rugmatte.py