That is probably doable.
It doesn't seem doable to me, but since you don't seem to believe the replies telling you that I suggest you give it a try. Whether you succeed or not, you will end up with a much greater appreciation of the difficulty of the problem you're trying to solve. I suggest you start by implementing your solution on a PC first since this will enable you to get something working (on a PC it will be relatively easy) without having to deal with all the hardware limitations and resource constraints of the Arduino. Then see how much memory, code space and CPU time your PC solution is using, and look for a suitable platform to run it on. I don't think it will be an Arduino, but perhaps you will prove me wrong.