XPSColorMap
import type { XPSColorMap } from "https://googleapis.deno.dev/v1/language:v2.ts";
Map from color to display name. Will only be used by Image Segmentation for uCAIP.
interface XPSColorMap {
annotationSpecIdToken?: string;
color?: Color;
displayName?: string;
intColor?: XPSColorMapIntColor;
}§Properties
§
This type is deprecated in favor of the IntColor below. This is because google.type.Color represent color has a float which semantically does not reflect discrete classes/categories concept. Moreover, to handle it well we need to have some tolerance when converting to a discretized color. As such, the recommendation is to have API surface still use google.type.Color while internally IntColor is used.
§
intColor?: XPSColorMapIntColor
[src]