Re: differentiation of RGB images (sorting)
Posted by
Stein Rørvik on
Feb 19, 2020; 1:43pm
URL: http://imagej.273.s1.nabble.com/differentiation-of-RGB-images-sorting-tp5022962p5022964.html
I have had success in classifying differences in colors by simply measuring the absolute distance (length of a vector in space) between the point of a measured color and the point of a reference color in a chosen color space (for example RGB). You may thus calculate an average RGB value of your image, and calculate the difference (color distance) between this and the value of your chosen reference image. You may do this for any type of color space (RGB, HSV, LAB etc). Color Inspector 3D is in this context extremely useful for providing a visual representation of how your colors is distributed in a given color space. Sorry for not providing any code example for this, as I do not have any general solution. But the idea might get you started with something.
Stein
-----Original Message-----
Sent: 19. februar 2020 13:30
To:
[hidden email]
Subject: differentiation of RGB images (sorting)
Hi,
I have some macro code, where I need to sort images based on their colour as some kind of quick 'classification'. I though about analysing some similar coloured images to get a 'descriptor' in form of softened ranges of RGB or Lab, but maybe exactly this is already there and I simply don't know where to look, like before :))
I tested the Color Inspector 3D, but this is more suited for visualization, although it provides some nice clustered representation.
Any hint would be great.
Kind regards,
Rainer
--
Rainer M. Engel, Dipl. Digital Artist
--
ImageJ mailing list:
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&data=02%7C01%7Cstein.rorvik%40sintef.no%7C8f01b3de91064258259008d7b53e43f0%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C1%7C637177151341196064&sdata=YHUsfxGhHydavxMSaNrJ%2FFq2mr4c%2FZANVEyU1Q3kvk8%3D&reserved=0--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html