Color Distribution Plotter

Versione 1.0.0 (10,6 KB) da Kei Otsuka
Display 3-D color gamut and plot distribution of colors in an image on a chromaticity diagram
256 download
Aggiornato 27 nov 2018

Visualizza la licenza

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.

>>myChromaticityDiagram(image, useCurvefit, useStats)
上記のように実行すると3つのコンポーネントを持つFigureが立ち上がり、入力画像、3D色空間と入力画像の色分布を色度図としてプロットした結果を確認できます。3D色空間の作成においては'rgb'が初期値として選択されていますが、ポップアップメニューから他の色空間('hsv', 'lab', 'ycbcr')も選択できます。
useCurvefitを有効にするためにはCurve Fitting Toolboxが必要で、useStatsにはStatistics and Machine Learning Toolboxが必要となります。これらのフラグは排他的に利用してください。

Cita come

Kei Otsuka (2024). Color Distribution Plotter (, MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2018b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release