isolated function for the computation of the R table just from an image