• Midnitte@beehaw.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    Not a colorologist, but how the hell do you measure saturation and hue in a poster?

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 months ago

      Not a colorololologist either, but I’m guessing, you scan it and then calculate the average of the individual pixels. You can convert RGB color values to HSV color values to get the hue, saturation and value.

      But calculating the average of the hue degrees (like was done for this post) is non-sense.
      0° is red, as is 360°, so you get completely different averages, depending on how you calculate them:

      • (0°+120°+240°) / 3 → 120° (green)
      • (360°+120°+240°) / 3 → 240° (blue)
      • nimpnin@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months ago

        Does hue make sense at all? If yes, you could calculate the vector mean (convert degrees to x and y axis, average, and convert back to degrees) and get something sensible out of that.

        • Ephera@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 months ago

          Ah yeah, good idea.

          But good question, if it makes sense at all. Since hue is not a linear scale, the average is not exactly the ‘middle’ of anything. At best you could interpret it as the poster being somewhat biased in that direction, but ultimately you could have a poster with no green at all, which still averages out to green, and that just doesn’t feel right.

          A more complex graph, which shows the frequency of the colours used, might be more useful…