[Back to the Colour Picker Module]

Using the Colour Picker Interface

This page explains the way the user interface for the colour picker is used in Artiste. It is used in conjunction with the colour picker algorithm which selects images based on the inclusion of a selected colour within the image.

The user interface is a Java applet, which means it needs to be run in a browser that supports Java applets, and has applet loading turned on.

The code is downloaded to the browser and run from there. Once the final colours have been selected they are sent back to the Artiste system where the matching takes place. There is a slight delay as the applet starts up, while it generates the colour patch.

For administrators, the code can be run stand-alone, and in this format allows the updating, loading and saving of the colour palette.

Introduction to the Interface


The colour picker user interface

The user interface looks similar to above. The main parts of the interface are:

Selecting A Colour

There are two main methods of colour selection. The colour sliders and the colour patch.


Selecting a colour

The image above shows the user has pulled the HSV sliders into a position where the terracotta colour is shown in the colour box. Note that the colour patch has changed to reflect the mixed colour. The colour primitives used in the mixing can be altered by clicking the radio buttons underneath the sliders. The values on the other sliders will represent the selected colour.

Adding A Colour To The Match


Adding a colour to the match

When the colour box shows the colour which is wanting to be matched, the Add Colour To Selection button, in the button toolbar, is pressed, and the selected colours panel shows a new colour bar representing the selected colour. This example shows a mint green has been selected, and added to the selected colours panel. The height of the colour bar represents how much of that colour the match should try to find within the image. It defaults to 100% (so it tries to find a mint green image).

Adding Multiple Colours To the Match


Adding multiple colours to the match

More than one colour can be searched for within the dataset. So, in the above example, the orange has also been added to the selected colours panel by clicking the Add Colour To Selection button. The default amount of each colour now defaults to 50% - so the matcher would try to find an image with 50% mint green, and 50% orange (in any distribution). If an image does not contain one, or both, of the colours it is not returned; i.e. only images containing these colours are returned. The number of colours to match against is not limited. Also note that one colour can be added multiple times. This is not recommended and has undefined behaviour.

Altering The Amounts Of Colours In A Match


Altering the amounts of colours in a match

By pressing the less and more buttons in the selected colours panel, the relative amounts of each colour can be altered. The amounts are altered in steps of 10%. The total amount cannot exceed 100%. If you attempt to increase an amount of a colour when the total amount is already 100%, the other colours in the match will be scaled down accordingly. You may have an amount of colour which sums to less than 100%. In the above example the orange colour has been increased above 50%. This has scaled down the green so that the total amount does not exceed 100%.

Removing A Colour From the Match


Removing a colour from the match

If a colour that has been selected is now considered redundant, it can be removed from the match panel so that it will not be searched for. This is achieved by pressing the remove button underneath the corresponding colour bar in the selected colours panel. In the above example we removed the mint green colour from the match. Note that the amount of orange does not return to 100% but stays at the previous value.

Notes about the matching

The number of colours that can be selected for matching is unlimited. However, it is not recommended that more than 4 are used at once (simply because the match is unlikely to return any results).

Colours can be added multiple times to the selected match panel. This is not recommended and has undefined behaviour. It is likely that the values will be averaged for matching.

Colours that are similar and fall into the same histogram bin for matching will be averaged for matching.

When multiple colours are selected for matching, only images containing all of the colours will be returned as matches. If images contain less than all of the selected colours they are not considered as a match. The matching images will be returned in order of how close to the required amounts the image contains. So, if we submitted our query above with 50% mint green and 50% orange, an image with 40% mint green, and 40% orange, would be returned higher in the results than an image with 40% mint green, and only 20% orange.

[Back to the Colour Picker Module]
[Back to the Index]