Images at the top are from the niconico-seiga (http://seiga.nicovideo.jp/). The illustrations are picked by niconico-seiga illustration ID at the top text boxes. Images at the bottom row are the result medium illustrations.
The main idea of this demo is come from the following paper.