I want to crop a bulk of images(approximately 500+images). For this, I want to write(or record) a macro which I can run on all images in the folder. The problem is that ROI for all images is different. So, how can I write a macro that enables me to select different ROI for each image,crop that ROI from image and then perform a series of commands on the cropped region. I have an idea. Can I take four points selected by mouse click in the function parameter , and then we would make rectangle using all those 4 points to crop the rectangle. Though I don’t have idea of how to take points using mouse click inside the function parameters. Any advice on this idea or some other idea would be very useful.