ROI Draw

ROI Draw allows you to draw rectangular ROI's at any angle.
3.6K Downloads
Updated 4 Dec 2008

No License

Most ROI Drawing Tools limit you to either drawing a circular ROI or a rectangular ROI perpendicular to the X-Y axis. ROI Draw's primary purpose is to expand upon the drawing of rectangular ROI's by allowing you to draw them at any angle.

After selection of an ROI, ROI Draw crops and rotates your ROI into the X-Y plane using a bicubic interpolation algorithm (chosen in order to preserve textural properties) so that spatial statistics may be analyzed.

ROI Draw outputs a .MAT file which, in addition to storing your rotated ROI, stores the original image and a mask file (for calculating pixel statistics), and the coordinates of the corners of your ROI so that they can be used to colocalize an ROI on another image.

ROI Draw at this point only works for DICOM images as its primary purpose is for application in medical research.

Cite As

Christopher Changchien (2024). ROI Draw (https://www.mathworks.com/matlabcentral/fileexchange/22052-roi-draw), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
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.6.0.0

none. just updating the description

1.5.0.0

forgot to fix a misplaced quote.

1.4.0.0

added ability to control sample rate of ROI's so that the ROI's generated can have mm/pixel dimensions independent of the original image. added a help section. fixed a bug where user can draw a parallelogram on accident.

1.2.0.0

eliminated double-for loop to make interpolation step more efficient (there should be little to no waiting time now). saved roi's as doubles for image processing. interpolation is done using bicubic instead of bilinear interp.

1.1.0.0

- Fixed bug of unsaved contrast/zoom settings when shifting ROI's.
- Now remembers which directory you are currently using so you don't have to re-navigate through the directory tree.

1.0.0.0