how to crop a image using a mask

Hi dear all,

Do you know how to crop the T1 brain image using a mask?

best
zhou