Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why estimate the k1 by (u2 - d2) / (d2 * d) #2

Open
busyyang opened this issue Mar 14, 2023 · 0 comments
Open

Why estimate the k1 by (u2 - d2) / (d2 * d) #2

busyyang opened this issue Mar 14, 2023 · 0 comments

Comments

@busyyang
Copy link

Thanks for sharing this amazing work. It helps me a lot. But I am little confused why estimate the value of k1 by (u2 - d2) / (d2 * d)

def estimateKappa(points):
    def estimateKappaP(point):
        u2 = (point.projectedSensor[0] * point.projectedSensor[0]) + (
                point.projectedSensor[1] * point.projectedSensor[1])
        d2 = (point.sensor[0] * point.sensor[0]) + (point.sensor[1] * point.sensor[1])
        d = math.sqrt(d2)
        return (u2 - d2) / (d2 * d)

    return np.mean(list(map(estimateKappaP, points)))

from my side, as we know that:
$x_u=x_d(1+k_1r^2)$
$y_u=y_d(1+k_1r^2)$

where $r^2=x_d^2+y_d^2$. But it does not accord with this result (u2 - d2) / (d2 * d).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant