Text this: A microscopic image stitching algorithm with improved energy function