PIC-based joint transform correlator CNN