I have a function which takes multi-page tiff images and finds the average of the maximum pixel from each page. That function is working fine, but it takes a variable number of input pathways using the varargin function.
The inputs would have a format like 'C:\Users\me\desktop\thefolder\theimage.tif', the function takes all of these inputs and gives me the averages. I need help automating this process a bit more.
Up until now I have just been manually writing out the path for each individual image, but as the number of multipage tiff goes up it becomes time consuming to write everything out...
How do I write a function that will easily find all of the images, then give me char variables in the workspace corresponding to all of the image paths that I can then feed to the main function?