I’d like to obtain pixel values from a fixed region of hundreds of gray scale images. The location, shape (either rectangular or circle), and size of the region should be able to specified before running my m-file, without mouse button click. So, the pixel values, corresponding pixel locations, and file index at every single image are automatically saved in the workspace by just typing first and last index of the images in my m-file.
How can I do this?
Thanks in advance.