Research Article
Large-Scale Coarse-to-Fine Object Retrieval Ontology and Deep Local Multitask Learning
Algorithm 4
Computation of dissimilarity distance of two colors.
| Procedure: DISSIMILARITY_DISTANCE_OF_TWO_COLORS | | Input: | | : first HSV color | | : second HSV color | | Output: | | : color dissimilarity distance of two HSV colors | | Goal: | | Compute dissimilarity of two colors | | BEGIN | | //Grey color with small V, S, or unidentified H | | isGrey1 = | | isGrey1 = | | //Check if both are grey color | | if (isGrey1 && isGrey2): | | | | if (isGrey1 = = 0 && isGrey2 = = 0): //both are color | | | | | | | | | | else: #do not care about H channel | | | | | | | | END |
|