I obtain grayscale image' 'img' that I add to a 'stack' i.e. image array by:
So If I have say 5 images in the imgArray, I have been saving them to disk by writing them out individually as tifs via:
BUT, I want the option to say the array of images as a single file i.e. an image stack. I thought the following would do it
h = errordlg('Error Saving Image STK')
But it always fails. Is there an obvious error?