Image processing of HRTEM images with non-periodic features