An image featuring your chosen color tone

The Key Color Image application was created to customize the color tones of the images used in my Master's thesis presentation on Artificial Intelligence.

I chose green and orange, the colors of VIU, the university where I earned my Master's degree.

Description

The command line application allows users to pass multiple images a color and apply the chosen tone to those images.

Code description

image

The algorithm's concept is simple:

It takes the RGB value of the desired color and calculates its gray tone.

For each individual image pixel, we apply the linear transformation to segments of the graph.

Each pixel is converted to its corresponding gray tone, resulting in a black-and-white image.

The piecewise linear transformation is applied to each channel.

Windows

Key Color Image v1.0 (2023)

Download

Key Color Image v2.0 (2025)

Download

Versions

image

The application, also written in Java, was introduced during the presentation of the Artificial Intelligence Master's Thesis (2022/2023).

The PowerPoint template we received had an orange theme, reflecting VIU University's school colors.

It seems like a good idea to create images that match that color range. I propose creating a command-line application to copy images based on the color hue.

The "Apache Commons CLI" library is used to parse input parameters for the command line, providing a new capability.

The slf4j logback option is also a new feature.

image
image

The new version of the application aims to explore additional uses for the colored luminance transformation introduced in v1.0

The new version utilizes a colored luminance transformation to apply effects more variedly instead of using a single color for the entire image:

  • Combining an image with a luminance gradient. When merging the two images, the luminance of the original image is modified by the luminance of the gradient image, while preserving the original image's color in each pixel.
  • Combinar una imagen con un gradiente de color. Al combinar las dos imágenes, se toma la luminancia de la imagen original, aplicándole el color definido en cada pixel por la imagen de gradiente de color.
  • A command interface binary is created to generate gradient images, with the formulas for calculating the RGB components based on X and Y values encrypted within the code.

This proof of concept has been very successful. I am now developing a new application version with a user interface that enables users to create custom formulas for gradient images and save each encoded gradient with a retrievable and editable context.

Downloads