image-js
Version:
Image processing and manipulation in JavaScript
29 lines • 785 B
TypeScript
import type { RoisColorMode } from '../colorRois.js';
import type { RoiKind } from '../getRois.js';
export interface GetColorMapOptions {
/**
* Number of black ROIs.
*/
nbNegative: number;
/**
* Number of white ID ROIs.
*/
nbPositive: number;
/**
* Specify the mode: what colors to use in the color map.
* @default `'binary'`
*/
mode?: RoisColorMode;
/**
* Specify which ROIs to color.
* @default `'bw'`
*/
roiKind?: RoiKind;
}
/**
* Return a map of 32 bits integers corresponding to the colors of each ROI.
* @param options - Get color map options.
* @returns The color map.
*/
export declare function getColorMap(options: GetColorMapOptions): Uint32Array;
//# sourceMappingURL=getColorMap.d.ts.map