颜色和纹理提取程序.docVIP

  • 3
  • 0
  • 约3.82千字
  • 约 4页
  • 2017-06-21 发布于河南
  • 举报
颜色和纹理提取程序

function colorhist = colorhist(rgb) % CBIR_colorhist() color histogram calculation % input: MxNx3 image data, in RGB % output: 1x256 colorhistogram == (HxSxV = 16x4x4) % as the MPEG-7 generic color histogram descriptor % [Ref] Manjunath, B.S.; Ohm, J.-R.; Vasudevan, V.V.; Yamada, A., Color and texture descriptors % IEEE Trans. CSVT, Volume: 11 Issue: 6 , Page(s): 703 -715, June 2001 (section III.B) % check input if size(rgb,3)~=3 error(3 components is needed for histogram); end % globals H_BITS = 4; S_BITS = 2; V_BITS = 2; %rgb2hsi可用rgb2hsi代替,见你以前的提问。 hsv = uint8(255*rgb

文档评论(0)

1亿VIP精品文档

相关文档