Skip to content

request: increase code readability #180

@fanckush

Description

@fanckush

I'm really interested in this project and would love to contribute and start closing some of the issues. To be honest, the code isn't very understandable, many variables don't have proper naming and I think that makes it difficult for new people who didn't initially write the code. Take this function for example:

void Image::computeResponseFunction(const Image & r) {

uint16_t * usePixels = &data[-reldy*width - reldx];
const uint16_t * rUsePixels = &r.data[-relrdy*width - relrdx];
// some code...
double nv = rUsePixels[pos];
double v = usePixels[pos];

Maybe that's how C++ devs write their code, I'm not sure as I've never worked on a C++ project.
If what I'm saying makes sense and you agree with me, maybe we can do it bit by bit a function/method at a time by renaming variables and adding some more comments, specially for the mathematical components.

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