【问题标题】:Number of unique CIELab colors in an image图像中唯一 CIELab 颜色的数量
【发布时间】:2020-02-15 12:57:49
【问题描述】:

我有一张以 CIELab 色彩空间表示的图像。如何返回图像包含的唯一 CIELab 颜色的数量?

谢谢。

【问题讨论】:

    标签: python matlab colors cielab


    【解决方案1】:

    你可以使用unique(...,'rows'):

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

    【讨论】:

      猜你喜欢
      • 2019-07-24
      • 2010-09-12
      • 2019-10-29
      • 2012-02-16
      • 1970-01-01
      • 2018-12-12
      • 2018-12-05
      • 1970-01-01
      • 2011-07-06
      相关资源
      最近更新 更多