Magnetic microstructure of the spin reorientation transition