Bell形(高斯)曲线的统计分析 [英] Statistical analysis on Bell shaped (Gaussian) curve

查看:368
本文介绍了Bell形(高斯)曲线的统计分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我正在获取包含屏幕上某些光源投影的图像(由高速摄像头拍摄)。

In my application I am getting images (captured by a high speed camera) containing projections of some light sources on the screen.

1 - 我的第一个任务是绘制光强度的PDF或强度分布图,它应该是钟形或高斯,因为在中心是光强度将是最大的,到最后它将减少。像这样(例如,不是我的确切情况):

1-My first task is to plot a PDF or intensity distribution plot for the light intensity, which should come as bell shape or Gaussian, since at the center the light intensity will be maximum and at the ends it will be diminishing. Like this(just for example, not the exact case for me):

在最糟糕的情况下,我将同时照亮一系列光源。在这种情况下理论上我应该得到重叠的钟形或高斯曲线,有些像这样:

In worst cases I will be having a series of light sources illuminated simultaneously. In such cases theoretically I should get overlapping bell or Gaussian curves, some what like this:

如果给出光投影图像(如图中的图像),如何绘制这样的曲线?

How do I plot such a curve given the Images of light projection (like the one in the figure)?

2 - 绘制高斯曲线后,接下来的工作是分析相同的结果,例如找到曲线的宽度和高度。我该怎么做?

2-After the Gaussian curve is drawn, the next job is to analyze the same such as finding width and height of the curve. How do I go for this?

我想要这个应用程序的可执行文件,因此我的客户端不接受MATLAB或类似工具给出的解决方案。此外,我希望解决方案能够实时或接近实时工作。

I want an executable for this application, so a solution given by MATLAB or similar tool is not acceptable to my client. Also i want the solution to work in real time or near real time.

我想这里可以使用OpenCV。但在我开始之前,我想在这个论坛上了解图像处理专家的意见。特别是对于上面的步骤-1,我需要一些输入。

I guess OpenCV can be used here. But before I start I would like to know opinions of Image processing gurus on this forum. Especially for the step -1 above, I need some inputs.

这里有指针吗?

Rgrds,

Heshsham

注意:图片来自 http://pentileblog.com

推荐答案

我解决了这个问题:

算法如下:

1次使用cvSampleLine读取特定的图像行

1-use cvSampleLine for reading a particual line of image

2-使用cvMinMaxLoc知道最大像素行中的值

2- use cvMinMaxLoc to know the maximum pixel value in a line

3-请注意这些行中哪一行具有最高像素值。让我们说行号。 150

3- Note which of these lines is having highest pixel value. Lets say line no. 150

4-绘制第150行的像素值。

4- Plot pixel value for line 150.

我使用MATLAB验证结果和图表,和OpenCV结果完全一样。
感谢您的建议。

I used MATLAB for verifying my results and graphs, and the OpenCV result is exactly the same. Thanks for your suggestions guys.

这篇关于Bell形(高斯)曲线的统计分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆