modulate

Adjust the brightness, saturation, and hue of an image.

Brightness is one of the three properties of color, along with hue and saturation. It refers to the amount of light in an image, with a high brightness making the image lighter and a low brightness making the image darker.

On the other hand, saturation refers to the intensity of the colors in an image. A high saturation value will make the colors more vivid, while a low saturation value will make the colors more muted.

Finally, hue refers to the color of the image. It is represented as a circular color space, with red, green, and blue forming the primary colors.

removeBackground

Remove the background from an image using a pre-trained model.

The removeBackground method uses a pre-trained model to detect the foreground object in an image and remove the background. The method is useful for creating images with transparent backgrounds or isolating objects in an image.

The method returns a new image with the background removed.