rebook
rebook copied to clipboard
Code for Meng et al. 2011
Hi! I've tried to get results for image dewarp using file mrcdi.py. But I struggle to make it work.
The first error obtained in dewarp.py line 185 in get_AH_lines
:
return AH, lines, all_lines
This error was caused by the wrong order of returned values. In mecdi.py line 388:
AH, all_lines, lines = get_AH_lines(im)
So, I easily fixed it.
But the second problem is in mrcdi.py in estimate_directrix
line 102:
D_points_arc, _ = arc_length_points(D_points)
arc_length_points() missing 2 required positional arguments: 'ys' and 'n_points'
What am I missing?
I think that algorithm might be more deeply broken - I was never able to get satisfactory results. I usually use the algorithms in dewarp.py instead