简体   繁体   English

iphone,图像处理

[英]iphone, Image processing

I am building an application on night vision but i don't find any useful algorithm which I can apply on the dark images to make it clear. 我正在构建一个关于夜视的应用程序,但我没有找到任何有用的算法,我可以在黑暗的图像上应用它来清楚。 Anyone please suggest me some good algorithm. 任何人请建议我一些好的算法。

Thanks in advance 提前致谢

With the size of the iphone lens and sensor, you are going to have a lot of noise no matter what you do. 随着iphone镜头和传感器的大小,无论你做什么,你都会有很多噪音。 I would practice manipulating the image in Photoshop first, and you'll probably find that it is useful to select a white point out of a sample of the brighter pixels in the image and to use a curve. 我会先练习在Photoshop中操作图像,你可能会发现从图像中较亮像素的样本中选择一个白点并使用曲线是很有用的。 You'll probably also need to run an anti-noise filter and smoother. 您可能还需要运行抗噪声滤波器并使其更平滑。 Edge detection or condensation may allow you to bold some areas of the image. 边缘检测或冷凝可能允许您加粗图像的某些区域。 As for specific algorithms to perform each of these filters there are a lot of Computer Science books and lists on the subject. 至于执行这些过滤器中的每一个的特定算法,有许多关于该主题的计算机科学书籍和列表。 Here is one list: 这是一个列表:

http://www.efg2.com/Lab/Library/ImageProcessing/Algorithms.htm http://www.efg2.com/Lab/Library/ImageProcessing/Algorithms.htm

Many OpenGL implementations can be found if you find a standard name for an algorithm you need. 如果您找到所需算法的标准名称,则可以找到许多OpenGL实现。

Real (useful) night vision typically uses an infrared light and an infrared-tuned camera. 真实(有用)夜视通常使用红外灯和红外调谐相机。 I think you're out of luck. 我觉得你运气不好。

Of course using the iPhone 4's camera light could be considered "night vision" ... 当然使用iPhone 4的相机灯可以被视为“夜视”......

Your real problem is the camera and not the algorithm. 你真正的问题是相机,而不是算法。

You can apply algorithm to clarify images, but it won't make from dark to real like by magic ^^ 您可以应用算法来澄清图像,但它不会像魔法^^那样从黑暗变为真实

But if you want to try some algorithms you should take a look at OpenCV (http://opencv.willowgarage.com/wiki/) there is some port like here http://ildan.blogspot.com/2008/07/creating-universal-static-opencv.html 但是如果你想尝试一些算法你应该看看OpenCV(http://opencv.willowgarage.com/wiki/)这里有一些端口http://ildan.blogspot.com/2008/07/creating -通用-静态opencv.html

I suppose there are two ways to refine the dark image. 我想有两种方法来改善暗图像。 first is active which use infrared and other is passive which manipulates the pixel of the image.... 第一个是活动的,使用红外线,其他是被动的,操纵图像的像素....

The images will be noisy, but you can always try scaling up the pixel values (all of the components in RGB or just the luminance of HSV, either linear or applying some sort of curve, either globally or local to just the darker areas) and saturating them, and/or using a contrast edge enhancement filter algorithm. 图像会有噪声,但您可以随时尝试放大像素值(RGB中的所有分量或仅HSV的亮度,无论是线性还是应用某种曲线,全局或局部到更暗的区域)和使它们饱和,和/或使用对比度边缘增强滤波器算法。

If the camera and subject matter are sufficiently motionless (tripod, etc.) you could try summing each pixel over several image captures. 如果相机和主题物体是静止不动的(三脚架等),您可以尝试将每个像素与多个图像捕捉相加。 Or you could do what some HDR apps do, and try aligning images before pixel processing across time. 或者你可以做一些HDR应用程序所做的事情,并尝试在像素处理之前对齐图像。

I haven't seen any documentation on whether the iPhone's camera sensor has a wider wavelength gamut than the human eye. 我还没有看到有关iPhone的相机传感器是否具有比人眼更宽的波长色域的任何文档。

I suggest conducting a simple test before trying to actually implement this: 我建议在尝试实际执行之前进行一个简单的测试:

  1. Save a photo made in a dark room. 保存在黑暗的房间里制作的照片。
  2. Open in GIMP (or a similar application). 在GIMP(或类似的应用程序)中打开。
  3. Apply "Stretch HSV" algorithm (or equivalent). 应用“Stretch HSV”算法(或等效物)。
  4. Check if the resulting image quality is good enough. 检查生成的图像质量是否足够好。

This should give you an idea as to whether your camera is good enough to try it. 这应该可以让您了解您的相机是否足够好来试用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM