Reuters -- Merge Healthcare Inc said it has agreed to acquire Confirma Inc, a privately held developer of computer assisted detection software for medical imaging, in an all-stock deal valued at about $22 million.