1. A method for determining a mask pattern to be used on a photo-mask in a photolithographic process, comprising: determining a set of regions corresponding to different locations on a target pattern; representing a first mask pattern with a pixel based representation; determining a second mask pattern in accordance with the first mask pattern, the target pattern and a model of a photolithographic process, wherein the determining includes different treatment for different regions in the set of regions.