RGB image mapping to point coordinates, HOW?

imagevalue.gh (714.5 KB)

How can {R,G,B} values be mapped to coordinate[x, y, z] format? Generating point coordinates from image RGB values is the objective.

Here is a guide for your reference.

look for the “SplitRGB” component, use the outputs as X, Y, Z for point construction.

You can plug directly a point component. Points will be inside a cube withbrange -1 to 1.

The output of ARGB component produces RGB values independently, with an auto-sort function for each category of R, G, and B. That means I’d have to match data again with some indexing components and merge it again.

Don’t know yet… Gotta try later.

You mean…?
How does this contribute to my problem?

You ask for it you got it ! RGB with integer from 0 to 255 is a convention, points with coordinates from [-1 to 1] is another.

You suggest it’s similar to a REMAP, but what if you simply want the exact RGB map to xyz?

Maybe use REMAP again and update the domain? LOL

If you want values [0 255] use what @René_Corella tells you
but don’t forget to put this option

PS : for my uses, transformation using point could be quite perfect if each color mapped to [0,1]
I use this for example to make some clustering then I can use, that is [0, 1]
image

Additional insight:

I’m taking notes right now. It’s a productive day!