rebook icon indicating copy to clipboard operation
rebook copied to clipboard

Code for Meng et al. 2011

Open Enuvesta opened this issue 5 years ago • 1 comments

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?

Enuvesta avatar Sep 16 '19 11:09 Enuvesta

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

phulin avatar Sep 16 '19 12:09 phulin