簡體   English   中英

圖像中唯一 CIELab colors 的數量

[英]Number of unique CIELab colors in an image

我有一張在 CIELab 顏色空間中表示的圖像。 如何返回圖像包含的唯一 CIELab colors 的數量?

謝謝。

您可以使用unique(...,'rows')

n = size(unique(reshape(img, [], 3)),1);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM