Random Cropped Image Generator

This script helps in the generation of cropped image with random offset and random orientation.
491 Downloads
Updated 17 Mar 2014

View License

This helps in the creation of cropped square image from an input image (RGB/Grayscale). The cropped image is randomly generated from the input image wherein the pixel location is randomly chosen. Also the orientation of the cropped image is randomly generated too. There are a total of 8 orientations (similar to the 8-pixel neighborhood).
It may be useful in the generation of several training images in various machine learning approaches.

Cite As

Soumyabrata Dev (2024). Random Cropped Image Generator (https://www.mathworks.com/matlabcentral/fileexchange/45883-random-cropped-image-generator), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
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.1.0.0

Fixed a bug for error reporting. If no suitable cropped image is found, the scripts looks for the next possible random selection.

1.0.0.0