Initial stages of optimising STEM to calculate batches of pixels at once to reduce number of potential calculations. Still buggy.
Fixed bug in sum reduction function causing exceptions, optimised stem only works if number of pixels in x is multiple of the number of simultaneous wavefunctions (multistem)
Greatly increased speed of image updating for STEM. Doesnt save TDS arrays now, just sums pixel values inside image display..
Pixels are now updated in random order to allow for more efficient randomized TDS iterations. Now only total number of pixels must be multiple of number of simultaneous wavefunctions.
Fixed inverted images in stem mode and incorrect CBED probe position. Change STEM TDS contrast calculation and ordering of TDS,pixel loops.
Fix bug in stem subregion positions being calculated incorrectly.
Memory usage now automatically estimated
Stem images no longer need to have total pixels as a multiple of concurrent pixels
Merged from Elysium and got to basic working state. Finite difference definitely doesn't work
Re-enabled FD mode after modifications to make it work with multiple simultaneous wavefunctions.
TDS now much better after sort and shuffle calls moved
HUI colours can now be dynamically set on the main window.
Merge pull request #93 from ADyson/STEMOptimisation

Merge STEM optimisations into Elysium