累加直方图 Cumulative Histogram

本文深入探讨了累积直方图的概念及其在灰度和RGB图像中的应用。详细介绍了如何通过MIPAV工具实现累积直方图,并通过实例展示了其在图像分析中的作用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Cumulative Histogram

A sample cumulative histogram
Figure 12a. A 3D grayscale image (a)
Figure 12b. Its cumulative histogram (b)
Figure 13. A 2D RGB image and its cumulative histograms for each channel (red -c, green-d and blue-b)
Figure 13. A 2D RGB image and its cumulative histograms for each channel (red -b, green-c and blue-d)

The cumulative histogram is a histogram in which the vertical axis gives not just the counts for a single bin, but rather gives the counts for that bin plus all bins for smaller values of the response variable.

Background

Let I:Q -> [0,1] be an image and h is the distribution of its values (a histogram). The cumulative histogram of I is the function H: [0,1] -> [0,1] defined by

<math> H(x)=\int_0 ^x h(t)d(t) </math>

Image types

One can apply the Cumulative Histogram algorithm to 2D, 2.5D and 3D grayscale and color (RGB) images. For RGB images the algorithm will display a separate cumulative histogram for each channel (R, G, and B).

Examples

Following examples display cumulative histograms for grayscale and RGB images. Figure 12 shows a 3D grayscale image (a) and its cumulative histogram (b). Figure 13 and Figure 14 show 2D RGB images and their cumulative histograms for each channel. Note that, the RGB image from Figure 13 has in fact only two color channels - Red and Blue, therefore its cumulative histogram for the Green channel shows nothing.

Applying Cumulative Histogram algorithm to images

To apply Cumulative Histogram to grayscale images

  • Open an image of interest.
  • In the main MIPAV window, navigate to Algorithms > Histogram Tools > Cumulative Histogram.
  • The algorithm starts running and the cumulative histogram appears in a new image frame. See Figure 12.

To apply Cumulative Histogram to RGB images

  • Open an image of interest.
  • Call Algorithms > Histogram Tools > Cumulative Histogram from the main MIPAV menu.
  • The algorithm starts running and the cumulative histograms for each channel (R,G, and B) appear. See Figure 13 and Figure 14.

References

J. Delon, Midway Image Equalization, Journal of Mathematical Imaging and Vision, vol.21, no.2, pp.119-134, 2004.

Understanding Histograms in Digital Photography

See also:


from: http://mipav.cit.nih.gov/pubwiki/index.php/Cumulative_Histogram
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值