Skip to content

gamma correction seems wrong #27

@iZhangHui

Description

@iZhangHui

The gamma correction calculation formula in colorview.ino seems not right.
`for (int i=0; i<256; i++) {

float x = i;

x /= 255;

x = pow(x, 2.5);

x *= 255;

`

I think it should be x = pow(x, 2.5); --> x = pow(x, 1/2.5);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions