FOR the past two years, my colleagues and I have been training dogs to go in an M.R.I. scanner — completely awake and unrestrained. Our goal has been to determine how dogs’ brains work and, even more important, what they think of us humans.