Run in comparison mode and compare the individual image components, i.e. red, green, and blue to the corresponding thresholds
pnmpsnr path/to/file1.pnm path/to/file2.pnm -rgb -target1 threshold_red -target2 threshold_green -target3 threshold_blue