Image: Adjustments: Hue
Adjust image hue
1. imgHue a:=20;
2. imgHue a:=30 img:=mat(1) oimg:=mat(2);
Please refer to the page for additional option switches when accessing the x-function from script
Input
double
Specifies the angular amount to change the hue, in degrees. Valid range is [0, 360]. The default is 0.
Image
Specifies the source image to be manipulated. The default input is the active image.
Output
Specifies the output image. By default, the output image is the same as the input image.
See the syntax here.
Hue is what the color is. For example, it could be red, purple, and orange, etc. The imgHue X-Function allows the user to adjust the hue of an image, by specifying an angle to rotate the color wheel. Note that rotating the color wheel by 180 degree will get the complement color.
In this example, we use the imgHue function to change the color of the input image:
The computation uses L_ChangeBitmapHue() function from LEADTOOLS Main API. Please refer to the LEADTOOLS Main API Help file, Version 14 and read the L_ChangeBitmapHue topic.
LEADTOOLS Main API Help file, Version 14
imgBrightness, imgSaturation, imgColorlevel