Skip to content

A question about the source code #9

@hgpvision

Description

@hgpvision

Hi, I have a question about the source code, and that is about the struct Normalize2D in which the function getTransform try to make mean zero and unit variance 2D points:
inline void getTransform(double T[3][3]) const { ... double stddevX = sqrt(mXX / N + eX*eX); //sf: this has to be done! double stddevY = sqrt(mYY / N + eY*eY); ... }
The way to compute the standard deviation looks a bit of strange to me. Should not it be:
double stddevX = sqrt(mXX / N - eX*eX); double stddevY = sqrt(mYY / N - eY*eY);
I changed and executed but I got a totally wrong result. I don't know why. Are there any skills? Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions