Remap_Hues_xy (Based on G'MIC's curves)

3 years 1 month ago - 9 months 3 weeks ago #1 by crabshank
Remap_Hues_xy (Based on G'MIC's curves) was created by crabshank
This is a port of the hlsl code I made which lets you map an input colour (HSV or RGB) to an output colour and interpolates linearly between them, in the same way that G'MIC's curves function does.

Last edit: 9 months 3 weeks ago by crabshank. Reason: Urgent fixes
The following user(s) said Thank You: jas01, Deathmedic, WalterDasTrevas

2 years 3 months ago - 1 year 2 months ago #2 by crabshank
Replied by crabshank on topic Colour remapper (Based on G'MIC's curves)
<Removed as obsolete>
Last edit: 1 year 2 months ago by crabshank. Reason: Obsolete
The following user(s) said Thank You: jas01

2 years 3 months ago #3 by Deathmedic
Replied by Deathmedic on topic Colour remapper (Based on G'MIC's curves)
This looks really good but as there isn't any ui based controls for the colour it's quite hard to figure out what to alter.

2 years 3 months ago - 1 year 2 months ago #4 by crabshank
Replied by crabshank on topic Colour remapper (Based on G'MIC's curves)
Example:

Default:
```	#define hueRotate 0
float rotate_hues =0;  //-360 to 360

#define hue 0
#define hue_points 3
float2 h[ hue_points] =
{
float2(0, 0),
float2(180,180),
float2(360, 360)
};```

```	float rotate_hues =4; //Rotate hues by 4 degrees (clockwise) before rempping  //-360 to 360

#define hue_points 4

float2 h[ hue_points] =
{
float2(0, 0),
float2(180,182),
float2(212,200),
float2(360, 360)
};```

This specfies (from, to): (0,0), (180,182), (212,200) and (360,360) as points and linearly interpolates between them, after rotating the hue by 4 degrees (useful for remapping red and pink hues that are on either side of 0/360deg).
Last edit: 1 year 2 months ago by crabshank. Reason: Updated