Owing to their zero charge, neutrons are able to pass through thick layers of matter (typically several centimeters) while being sensitive to magnetic fields due to their intrinsic magnetic moment. Therefore, in addition to the conventional attenuation contrast image, the magnetic field inside and around a sample can be visualized by detecting changes of polarization in a transmitted beam. The method is based on the spatially resolved measurement of the cumulative precession angles of a collimated, polarized, monochromatic neutron beam that traverses a magnetic field or sample.