react-native-mask-segment-c.../dist/utils/maskSemanticPalette.d.ts
a1518 acd6d3a73d feat: add MaskSegmentApp source code and config
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 00:27:28 -07:00

31 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export type MaskSemanticColor = {
name: string;
hex: string;
/** 参考色BGR与掩码 buffer 通道一致) */
bgr: {
b: number;
g: number;
r: number;
};
};
/** 掩码语义色表(与后端分区颜色参考一致) */
export declare const MASK_SEMANTIC_COLORS: MaskSemanticColor[];
export declare const BASEBOARD_SEMANTIC_NAME = "baseboard";
/** 将掩码像素归类到最近的语义色baseboard 仅严格橙色命中) */
export declare function classifyBgrPixelToSemantic(b: number, g: number, r: number): string;
export declare function getSemanticColorByName(name: string): MaskSemanticColor | undefined;
/**
* 踢脚线须更接近 #F58231 且明显优于黄柜 / 蓝墙,避免整块黄区被误判。
*/
export declare function isStrictBaseboardPixel(b: number, g: number, r: number): boolean;
export declare function isBaseboardPixel(b: number, g: number, r: number): boolean;
/** 掩码上墙/柜交界细条的量化色 */
export declare const BASEBOARD_STRIP_QUANT_KEYS: Set<string>;
/** 掩码上墙面量化色 */
export declare const WALL_QUANT_KEYS: Set<string>;
/** 掩码上柜/地面量化色 */
export declare const CABINET_QUANT_KEYS: Set<string>;
export declare function getBaseboardStripQuantKeys(): Set<string>;
export declare function getWallQuantKeys(): Set<string>;
export declare function getCabinetQuantKeys(): Set<string>;
//# sourceMappingURL=maskSemanticPalette.d.ts.map