Terahertz imaging for biomedical applications: Pattern recognition and tomographic reconstruction