Jpeg文件 - 提取信息 [英] Jpeg file - extracting information

查看:53
本文介绍了Jpeg文件 - 提取信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Photoshop中修改了一个jpeg文件



First Image>模式>灰度

第二过滤器>草图>邮票

第三过滤器> Pixelate>彩色半色调



我们现在看起来像不同大小的点 - 就像旧的报纸照片。我想得到点中心的坐标和它们的直径。



我可以用VB.net做这个,如果是这样的话怎么样?



希望如此

补丁

解决方案

请参阅我对该问题的评论。为什么要这样做?



一个想法就是解决问题。你在Photoshop中执行了一些像素化滤镜。而且你需要做一些需要图像识别的东西,而且可能无法给你可靠的结果。这被称为给自己创造一些困难,有勇气克服的东西。在代码中实现像素化算法应该更加容易和明智;这样,斑点的坐标和其他参数将在输入上,而不是输出。你不会把它们放在第一位。



有些参考你可以使用的开源库:



首先推荐的是AForge.NET:

http://en.wikipedia.org /wiki/AForge.net [ ^ ] ,

http://www.aforgenet.com/ [ ^ ]。



另一种选择是Open CV:

http://en.wikipedia.org/wiki/OpenCV [ ^ ],

http://opencv.org/ [ ^ ] 。



它有一个名为Emgu CV的.NET Wrapper: http://www.emgu.com/wiki/index.php/OpenCV [ ^ ]。



祝你好运,

-SA

I have modified a jpeg file in Photoshop

First Image > Mode > Grayscale
Second Filter > Sketch > Stamp
Third Filter > Pixelate > Colour Halftone

We now have what look like dots of varying sizes - like the old newspaper photos. I want to get the coordinates of the dot centres and their diameters.

Can I do this using VB.net and if so how?

Hope so
Patch

解决方案

Please see my comment to the question. Why doing so?

One idea is to invert the problem. You performed some "pixelate" filter in Photoshop. And than you need to do something which requires image recognition and may not give you reliable results. This is called "creating yourself some difficulties, to have something to bravely overcome". It should be much easier and sensible to implement pixelation algorithm in your code; this way the coordinates and other parameters of your spots will be on input, not output. You will not them exactly in first place.

Some referenced to open-source libraries you can use:

First one to recommend is AForge.NET:
http://en.wikipedia.org/wiki/AForge.net[^],
http://www.aforgenet.com/[^].

Another option is Open CV:
http://en.wikipedia.org/wiki/OpenCV[^],
http://opencv.org/[^].

It has a .NET Wrapper called Emgu CV: http://www.emgu.com/wiki/index.php/OpenCV[^].

Good luck,
—SA


这篇关于Jpeg文件 - 提取信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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