资源简介
meanshift实现的标准代码,亲测可用,里面包含5个m文件分别是Main.m,meanShift.m,colorspace.m等等,和一些张测试图片。加了中文注释了,易懂绝对好用,还有12张测试图片。
代码片段和文件信息
function varargout = colorspace(Conversionvarargin)
%COLORSPACE Transform a color image between color representations.
% B = COLORSPACE(SA) transforms the color representation of image A
% where S is a string specifying the conversion. The input array A
% should be a real full double array of size Mx3 or MxNx3. The output B
% is the same size as A.
%
% S tells the source and destination color spaces S = ‘dest<-src‘ or
% alternatively S = ‘src->dest‘. Supported color spaces are
%
% ‘RGB‘ sRGB IEC 61966-2-1
% ‘YCbCr‘ Luma + Chroma (“digitized“ version of Y‘PbPr)
% ‘JPEG-YCbCr‘ Luma + Chroma space used in JFIF JPEG
% ‘YDbDr‘ SECAM Y‘DbDr Luma + Chroma
% ‘YPbPr‘ Luma (ITU-R BT.601) + Chroma
% ‘YUV‘ NTSC PAL Y‘UV Luma + Chroma
% ‘YIQ‘ NTSC Y‘IQ Luma + Chroma
% ‘HSV‘ or ‘HSB‘ Hue Saturation Value/Brightness
% ‘HSL‘ or ‘HLS‘ Hue Saturation Luminance
% ‘HSI‘ Hue Saturation Intensity
% ‘XYZ‘ CIE 1931 XYZ
% ‘Lab‘ CIE 1976 L*a*b* (CIELAB)
% ‘Luv‘ CIE L*u*v* (CIELUV)
% ‘LCH‘ CIE L*C*H* (CIELCH)
% ‘CAT02 LMS‘ CIE CAT02 LMS
%
% All conversions assume 2 degree observer and D65 illuminant.
%
% Color space names are case insensitive and spaces are ignored. When
% sRGB is the source or destination it can be omitted. For example
% ‘yuv<-‘ is short for ‘yuv<-rgb‘.
%
% For sRGB the values should be scaled between 0 and 1. Beware that
% transformations generally do not constrain colors to be “in gamut.“
% Particularly transforming from another space to sRGB may obtain
% R‘G‘B‘ values outside of the [01] range. So the result should be
% clamped to [01] before displaying:
% image(min(max(B0)1)); % Clamp B to [01] and display
%
% sRGB (Red Green Blue) is the (ITU-R BT.709 gamma-corrected) standard
% red-green-blue representation of colors used in digital imaging. The
% components should be scaled between 0 and 1. The space can be
% visualized geometrically as a cube.
%
% Y‘PbPr Y‘CbCr Y‘DbDr Y‘UV and Y‘IQ are related to sRGB by linear
% transformations. These spaces separate a color into a grayscale
% luminance component Y and two chroma components. The valid ranges of
% the components depends on the space.
%
% HSV (Hue Saturation Value) is related to sRGB by
% H = hexagonal hue angle (0 <= H < 360)
% S = C/V (0 <= S <= 1)
% V = max(R‘G‘B‘) (0 <= V <= 1)
% where C = max(R‘G‘B‘) - min(R‘G‘B‘). The hue angle H is computed on
% a hexagon. The space is geometrically a hexagonal cone.
%
% HSL (Hue Saturation Lightness) is related to sRGB by
% H = hexagonal hue angle (0 <= H < 360)
% S = C/(1 - |2L-1|) (0 <= S <= 1)
% L = (max(
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-11-02 09:47 meanshift算法完整版绝对可运行+代码注释\
文件 189055 2015-07-21 04:41 meanshift算法完整版绝对可运行+代码注释\COCO_test2015_000000005148.jpg
文件 182586 2014-08-16 09:22 meanshift算法完整版绝对可运行+代码注释\COCO_train2014_000000003623.jpg
文件 103168 2014-08-16 08:44 meanshift算法完整版绝对可运行+代码注释\COCO_train2014_000000009038.jpg
文件 184171 2014-08-16 08:47 meanshift算法完整版绝对可运行+代码注释\COCO_val2014_000000012443.jpg
文件 217374 2014-08-16 09:13 meanshift算法完整版绝对可运行+代码注释\COCO_val2014_000000012860.jpg
文件 118404 2014-08-16 08:43 meanshift算法完整版绝对可运行+代码注释\COCO_val2014_000000015567.jpg
文件 406 2013-05-20 12:42 meanshift算法完整版绝对可运行+代码注释\G.m
文件 306 2017-11-02 09:15 meanshift算法完整版绝对可运行+代码注释\Main.m
文件 215709 2011-04-07 11:11 meanshift算法完整版绝对可运行+代码注释\baboon.jpg
文件 17970 2004-11-09 14:29 meanshift算法完整版绝对可运行+代码注释\butterfly.jpg
文件 11262 2004-11-09 14:29 meanshift算法完整版绝对可运行+代码注释\chair.jpg
文件 16669 2017-10-29 14:56 meanshift算法完整版绝对可运行+代码注释\colorspace.m
文件 19882 2004-11-09 14:31 meanshift算法完整版绝对可运行+代码注释\cougar.jpg
文件 14055 2004-11-09 14:30 meanshift算法完整版绝对可运行+代码注释\helicopter.jpg
文件 241364 2011-04-07 11:13 meanshift算法完整版绝对可运行+代码注释\lake-district.jpg
文件 680 2013-05-20 15:29 meanshift算法完整版绝对可运行+代码注释\meanShift.m
文件 2728 2017-11-02 09:30 meanshift算法完整版绝对可运行+代码注释\meanShiftSeg.m
相关资源
- mean shift目标跟踪matlab程序
- 基于Meanshift的单目标跟踪
- meanshift图像平滑matlab实现
- MeanShift算法详解以及matlab源码
- 基于Meanshift的单目标跟踪算法matlab及
- MeanShift均值漂移目标追踪算法源码
- k-means和meanshift在图像聚类分割中的对
- 均值漂移算法的matlab代码
- 混合高斯建模加meanshift算法matlab代码
- 基于meanshift的图像分割matlab代码
- matlab实现meanshift图像分割
- meanshift的matlab实现及2维图演示代码
- 基于MeanShift的目标跟踪算法
- matlab实现的meanshift视频目标跟踪程序
- 用matlab实现的meanshift跟踪算法
- 基于meanshift的彩色图像分割算法源代
- meanshift原理图像分割matlab程序
- MeanShift_MATLAB代码+详细注释
- Meanshift图像分割matlab
- 基于Meanshift的单目标跟踪算法
- meanshift目标跟踪MATLAB实现
- meanshiftsegmentation 均值漂移图像分割测
- MeanShift 均值漂移算法的MATLAB代码
- mean-shift-tracking meanshift算法的车辆跟踪
- meanshift实现图像分割
评论
共有 条评论