Asymmetric structure in the nuclei of NGC 1275 and 3C 345