You can do all of these things in software, and it is done. It’s important thing to have control over the process so you can get quantitative data at the other end, and not just a pretty picture. Also, noise should not be discounted as a very good reason to use lower megapixel sensors. If you want a pretty picture, by all means use a cellphone, but you can’t reality use or trust the result for many scientific purposes.