image-js
    Preparing search index...

    Function correctColor

    • Correct the colors in an image using the reference colors. Algorithm is based on the paper "Color correction using improved linear regression algorithm". DOI: 10.1109/ICTS.2015.7379874.

      Parameters

      • image: Image

        Image to process.

      • measuredColors: RgbColor[]

        Colors from the image, which will be compared to the reference.

      • referenceColors: RgbColor[]

        Reference colors.

      Returns Image

      Image with the colors corrected.