Color Distribution Plotter

版本 1.0.0 (10.6 KB) 作者: Kei Otsuka
Display 3-D color gamut and plot distribution of colors in an image on a chromaticity diagram
256.0 次下载
更新时间 2018/11/27

查看许可证

This function enable you to visualize distribution of colors in an image as a 3-D color gamut and chromaticity diagram.

>>myChromaticityDiagram(image, useCurvefit, useStats)
Creates figure with three components to display input image and 3-D color gamut, and to plot distribution of colors in an image on a chromaticity diagram. Color space for 3-D color gamut is 'rgb' as a default, but you can choose another color spaces such as 'hsv', 'lab' and 'ycbcr' using pop-up menu.
Optionally, you can use 'useCurvefit' or 'useStats' flag to accelerate execution speed. For example, if you set 'useStats' flag to true, this function use knnsearch to find nearest xy coordinates and ~10x speedup might be achieved.
Curve Fitting Toolbox is required to enable useCurvefit, and Statistics and Machine Learning Toolbox is required to enable useStats. Both are mutually exclusive.
Please run tb_myChromaticity.m first to see how this function works.
--
[Japanese]
本ツールを利用することで、画像中の色分布を3D色空間と色度図で可視化することができます。

>>myChromaticityDiagram(image, useCurvefit, useStats)
上記のように実行すると3つのコンポーネントを持つFigureが立ち上がり、入力画像、3D色空間と入力画像の色分布を色度図としてプロットした結果を確認できます。3D色空間の作成においては'rgb'が初期値として選択されていますが、ポップアップメニューから他の色空間('hsv', 'lab', 'ycbcr')も選択できます。
また、任意でuseCurvefitもしくはuseStatsフラグを利用して実行速度を改善可能です。例えば、useStatsをtrueに設定すると、最近傍のxy座標の探索にknnsearchが利用され、~10倍程度の高速化が期待できます。
useCurvefitを有効にするためにはCurve Fitting Toolboxが必要で、useStatsにはStatistics and Machine Learning Toolboxが必要となります。これらのフラグは排他的に利用してください。
まず始めにtb_myChromaticity.mを実行していただくと、本関数の振る舞いが確認できます。
--
[Keyward]
画像処理・色空間・カラープロファイル・色度図・デモ・IPCVデモ・色空間変換

引用格式

Kei Otsuka (2024). Color Distribution Plotter (https://www.mathworks.com/matlabcentral/fileexchange/69503-color-distribution-plotter), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Image Filtering and Enhancement 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0