You don't actually need image analysis. There are tricks you can use to decide if an enemy is visible or not without it - obviously the game itself does it already to decide if it should draw the enemies to begin with :)
Also yes these were invented a long time ago because people got caught snapping through the wall when CS servers started recording demos.
Also yes these were invented a long time ago because people got caught snapping through the wall when CS servers started recording demos.