calculate_intensity.R: first (incomplete) version of prepareRegions function

Signed-off-by: Charles Joly Beauparlant <Charles.Joly-Beauparlant@crchul.ulaval.ca>