You can largely remove shadows (and highlights) in software such as Photoshop or Lightroom. For this type of work Lightroom is my preferred software since it lets you quickly sample, alter and save large amounts of pictures. Works best if the original pictures are in RAW format. Whether this is strictly 'necessary' depends from dataset to dataset, but to be sure I tend to just preprocess any image sequence in Lightroom for optimal results.