So in short, yes, there is a relationship, but it is long and complicated and dependent on a large number of complex factors, so practically, there is not a direct relationship that you can rely on to map pixel data back to intensity values, at least not without knowing the response curves of all the processing steps and having reference levels to work from.