Run in comparison mode and compare the individual image components, i.e. Y, Cb, and Cr, to the corresponding thresholds
pnmpsnr path/to/file1.pnm path/to/file2.pnm -target1 threshold_Y -target2 threshold_Cb -target3 threshold_Cr