Wrapper for automatic 2D and 3D fdf image opening in MATLAB, based on Shanrong Zhang's fdf.m
Detects shape of varian fdf images from a directory specified by path and opens it into variable img, with unused dimensions omitted.
img(x, y, slice/z, [slab no.], img no., echo no.) = openfdf('/path/to/fdf/directory');