Barcode topology calibration