使用遗传算法的图像处理 [英] Image processing using genetic algorithm

查看:221
本文介绍了使用遗传算法的图像处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想看看GA在图像处理中的应用。我没有得到如何为任何图像编写健身功能。假设我有一个灰度级的图像,这不是很清楚,现在如果我将生成的解决方案与此图片值保持匹配,那么我的解决方案将如何变得更好,如更好的清晰度增加对比度/亮度等。

i want to see application of GA in image processing. I was not getting how to write the fitness function for any image. Say I have a image in grey scale,which is not very clear, now if I keep matching my generated solution with this picture value then how is my solution going to be better like better clearity increased contrast/brightness etc.

推荐答案

我最喜欢的图像处理中遗传算法的例子是:

My favorite example of Genetic Algorithms in image processing is:

http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of -mona-lisa /

它将随机形状演变成类似于蒙娜丽莎的东西。你可以在这里尝试并使用它:

It evolves random shapes into something that resembles the Mona Lisa. You can actually try it and play with it here:

http://www.nihilogic.dk/labs/evolving-images/

您的问题不是很清楚。然而,遗传算法非常重要的一件事是衡量它的好程度。在蒙娜丽莎的例子中,善良可以相对容易地衡量,它与实际的蒙娜丽莎接近。在你的情况下,听起来你正试图以某种方式提高图片质量而无法测量它的优点。

Your question isn't very clear. One thing that is extremely important with a genetic algorithm though, is to measure how 'good' it is. In the Mona Lisa example, goodness can be measured relatively easily, it's the proximity to the actual Mona Lisa. In your case, it sounds like you are trying to improve a pictures quality somehow with no way of measuring it's 'goodness'.

你应该构建一个评估池的函数每个解决方案和得分。然后互相培育出优质的解决方案。对所有这些至关重要的是,真的是,写一个评估/评分函数让你知道哪些是好的。

You should build a function that evaluates the pool of solutions and scores each one. Then breed the good quality solutions with each other. Crucial to all this though, really is, writing an evaluation/scoring function so you know which ones are good.

对于空气动力学,可以根据重量对形状池进行评分对于网络设计,布局可以根据延迟,物理成本,干扰等进行评分。如果您更详细地解释您的问题,我们可能会帮助您提出一套指标来为您的解决方案打分。

For aerodynamics, a pool of shapes can be scored on weight, drag, lift etc. For network design, layouts can be scored on latency, physical cost, interference etc. If you explain your problem in more detail we could probably help you come up with a set of metrics to score your solutions on.

这篇关于使用遗传算法的图像处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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