where f counts the occurrences of the 2D-PEH. Moreover, since mapping up and right in the rectangle region correspond mapping up-right and right in the original 2D-PEH, the distortion for mapping up and right is 2 and 1, respectively. As a result, the embedding distortion in terms of l-error is