Image processing using genetic algorithm

后端 未结 1 1759
臣服心动
臣服心动 2021-02-09 18:24

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 clea

相关标签:
1条回答
  • 2021-02-09 18:57

    My favorite example of Genetic Algorithms in image processing is:

    enter image description here

    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.

    0 讨论(0)
提交回复
热议问题