多边形遗传算法逼近图像 - 适应度计算

时间:2016-12-18 03:56:13

标签: genetic-algorithm

所以我实施了GA。而且我有一代人的多边形阵列。每个多边形都有color和一些point s。 我现在就像这样计算健康状况:

Paint the polygons onto a 200x200 view - > Get a snapshot of the view - > Get 40000 pixel data from the snapshot - > Compare the 40000 pixel data with the target image pixel data and returns the fitness

这实际上是一个非常糟糕的工具,因为UI渲染需要花费很多时间。 我可以用什么更好的方法进行适应度计算?如何从多边形阵列中获取40000像素数据?因为你知道,我无法在该阵列的精确坐标处获得精确的RGBA像素数据。

0 个答案:

没有答案