English 中文(简体)
图像中的黑点——Pi-目标C
原标题:Count black spots in an image - iPhone - Objective C

我需要将黑色点数按图像计算(黑点的百分比没有,而是计数)。 任何人都能够建议一个步骤明智的程序,在图像操纵中用来计算点数。

Objective : Count black spots in an image

What I ve done till now : 1. Converted image to grayscale 2. Read the pixels for their intensity values 3. I have set a threshold to find darker areas

Other implementations: 1. Gaussian blur 2. Histogram equalisations

What i have browsed : Flood fill algorithms, Water shed algorithms

非常感谢。

最佳回答

你们首先应当“标签”图像,然后计算一下你发现的标签数目。

<label的运行是第一次在博览分析行动中进行的活动:它把相邻的颜料归入一个object,并对这个物体分配价值。 分类的条件一般是背景/理由上的区别:标签操作将把相邻的餐具归类,这些餐具是地下的一部分,其背景被定义为纯黑人或纯白人,而地缘是任何肤色并非背景的颜色。

<label>/em>运行非常容易执行,不需要太多资源。

- (见;the wikipedia article ;或tts page ,用于更多贴标签信息。 http://crd.lbl.gov/%7Ekewu/ps/LBNL-59102.pdf

在贴标签之后,贴上标签的数量(你甚至可以贴上标签的标签),你有黑点”的号码<>。

下一个步骤是界定黑点:将你的输入形象转化为光线图像(通过将图像转换为HSL,并例如使用采矿计划),然后适用门槛值。 如果对你的输入形象的低估甚至不一样,你可能需要更好的门槛算法(a Adaptation limit

问题回答

如你想要用双亲形象标识算法贴上黑点(Blobs)的标签。





相关问题
Resources for Image Recognition

I am looking for a recommendation for an introduction to image processing algorithms (face and shape recognition, etc.) and wondered if anyone had an good recommendations, either for books, ...

Good reference book for digital image processing? [closed]

I am learning digital image processing on my own and would like recomendations on good reference books. If you know of books to definately stay away from that would be useful as well. Thanks

Python Tesseract can t recognize this font

I have this image: I want to read it to a string using python, which I didn t think would be that hard. I came upon tesseract, and then a wrapper for python scripts using tesseract. So I started ...

What s the quickest way to parallelize code?

I have an image processing routine that I believe could be made very parallel very quickly. Each pixel needs to have roughly 2k operations done on it in a way that doesn t depend on the operations ...

Computing object statistics from the second central moments

I m currently working on writing a version of the MATLAB RegionProps function for GNU Octave. I have most of it implemented, but I m still struggling with the implementation of a few parts. I had ...

Viola-Jones face detection claims 180k features

I ve been implementing an adaptation of Viola-Jones face detection algorithm. The technique relies upon placing a subframe of 24x24 pixels within an image, and subsequently placing rectangular ...

热门标签