Algorithm Code and Test Images