c# - Is there a perceptual DeltaRGB comparison of two colours (i.e., like DeltaE2000)? -
is there reliable delta rgb formula or code snippet colour delta of full rgb tri stim values, how deltae 2000/cmc lab/lch takes perceptual differences account?
the rgb colourspace any, if needed particular 1 keep srgb calculations. c# preferred, can convert language.
i have basic rgb delta formula, implement gets truer sense of perceptual colour difference. current right is
float delta = math.sqrt(math.pow(r1-r2, 2) + math.pow(g1-g2, 2) + math.pow(b1-b2, 2));
this similar deltae 76(lab), has same drawbacks perceptual difference not taken account.
please don't google search , paste first thing see! there lots of delta rgb formula's out there may found, not take perceptual differences account. if have knowledge of this, please comment and/or paste links code samples. also, have conversion rgb lab/lch , de2000/cmc. not looking that.
i'm afraid gave right answer: conversion perceptual color space, simple delta formula makes sense.
brilliant color scientists have been trying answer question of perceptual color differences on century. they've looked simple rgb formula works, human perception complex.
Comments
Post a Comment