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

Uninitialized delta variable in LAB conversion #7

Open
materight opened this issue Feb 26, 2021 · 0 comments
Open

Uninitialized delta variable in LAB conversion #7

materight opened this issue Feb 26, 2021 · 0 comments

Comments

@materight
Copy link

In the function to convert from RGB to LAB colorspace, the variable "delta" is never initialized and therefore contains random values at runtime.

rp/src/image.h

Line 120 in 4bef556

double r,g,b,x,y,z,L,A,B,fx,fy,fz,delta;

rp/src/image.h

Lines 149 to 150 in 4bef556

A=500.0*(fx-fy)+delta;
B=200.0*(fy-fz)+delta;

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