Area of interest selection in an image

This code enables a user to manually select an area in an image for further processing
3.7K Downloads
Updated 19 Mar 2007

No License

In this code, the user selection the area of interest on an image, by dragging the rectangle of size specified in the code around the image by holding the left button of mouse and leaving the left button at a desired area. This program takes the grayscale image as input and outputs the cropped selected region of the image and the coordinates of the top left hand side of the image.
For example: [I2,dataX,dataYY] = AreaSelection(b)
where b - greyscale input image
I2 - cropped output image
dataX- Top left hand side X coordinate of the image
dataYY - Top left hand side Y coordinate of the image

Cite As

Gaurav Sehgal (2024). Area of interest selection in an image (https://www.mathworks.com/matlabcentral/fileexchange/14306-area-of-interest-selection-in-an-image), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

New file with comments and help