Created Function for reading and sampling 2D/3D image data

closes-#3544
Any particular reason you decided to completely #ifdef out just the `vtkShiftAndScale`,  `vtkThreshold()`, and `vtkMagnitude()` functions?  It's probably fine, but it's kind of inconsistent with the rest of the interface, which just #ifdefs out the bodies of the functions...