Integration of mechanics and imaging in structural and medical applications