An FPGA-Based Pulse Pile-up Rejection Technique for Photon Counting Imaging Detectors**Supported by the National Natural Science Foundation of China under Grant No 11375179. (March 2015)