如何计算“绿点"的数量?在图像中? [英] How to calculate the amount of "green spots" in an image?

查看:32
本文介绍了如何计算“绿点"的数量?在图像中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我有一堆图像.让我们假设它们都具有相同的大小.图像有黑色背景和一些准圆形绿色斑点代表荧光.我必须计算金额(百分比)每个图像的荧光.IE.绿点面积.

Hi I have a bunch of images. Let's assume all of them of the same size. The images have a black background and some quasi round green spots which represent fluorescence. I have to calculate the amount (in percentage) of fluorescence of each image. I.e. the area of green spots.

知道如何做到这一点,例如在 Java 中吗?

Any idea how to do this, for example in Java?

推荐答案

一些想法:

  • 您可以进行边缘检测,然后执行 霍夫圆变换.如果您已经知道圆的半径,这应该很有效.
  • 比较颜色时,您可以使用更适合模糊比较的颜色空间.例如 HSV 颜色空间
  • 由于您的背景是黑色的,因此计算亮度并应用阈值可能是最简单的方法.然后计算高于阈值的像素.
  • 发布计算机视觉问题时,查看输入材料总是很有帮助的.
  • You could do an edge detection and then perform a hough circle transform. This should work well if you already know the radius of the circles.
  • When comparing colors you could use a color space that is better suited for fuzzy comparison. For example the HSV color space
  • Since your background is black, it is probably easiest to calculate the luminance and apply a threshold. Then count the pixels above the threshold.
  • When posting a computer-vision problem, it is always helpful to see the input material.

这篇关于如何计算“绿点"的数量?在图像中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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