do_processing function

Post-processing of datamatrix