phulin / rebook

A collection of tools for cleaning up book scans.
132 stars 30 forks source link

It seems this 0.01 should be 1.01? I guess. #17

Open jimlinntu opened 4 years ago

jimlinntu commented 4 years ago

https://github.com/phulin/rebook/blob/177daa7c5fe20354888ebc76b300e87f3adcb918/newton.pyx#L78

Hi, I just found that in this line, you use u_minus and u_plus, so I guess t should be 0.99 * t and 1.01 * t (rather than 0.01)?

jimlinntu commented 4 years ago

Oh, I guess you are trying to find the closest root t to the origin. So if s(0.99 * t) * s(0.01 * t) < 0, there must be a solution closer to the camera(the origin). Am I correct?