For the double edges and the brightness, add this:
Code:
smo = mt_convolution (horizontal="1 2 1", vertical="1", u=2, v=2)
dha = dehalo_alpha (ry=1)
sp1 = dha.PointResize (Width (), Height (), +1)
sm1 = dha.PointResize (Width (), Height (), -1)
shrp = mt_logic (sp1, sm1, "max").MergeChroma (last)
Merge (shrp, smo)
SmoothLevels (0, 1, 255, 16, 235) # Or encode it with PC-range flag
SeeSaw ()