Authors: | John Kay
Gilberto Galvis |
---|---|
Email: | [email protected], [email protected] |
Version: | 0.1.1 |
This project provides a tool to generate 2D images that have randomly distributed polygonal shapes along it.
- MatLab: The interface tool is based on MatLab, so it is required to have MatLab installed
- Clone this repository on your machine either using http or ssh
The tool is basically composed of a function called polygon_shape_placement
. Then, just execute this function with the desired input parameters. In this way, an array of data with the image content is returned as output. This matrix can then be manipulated either to display, save or manipulate the image.
Here is an example that can be executed using a MatLab script (such as the test.m
script placed in this repository) or also directly in the MatLab Command Window.
% matlab window clean
clc; close all; clear all;
% parameters
polyshape = {'5', [30,15]};
imsize = [550, 550];
distparams = [55, 25];
N = 3;
% run the function
im = polygon_shape_placement(imsize, polyshape, distparams, N, 'on');
% show the generated image
imshow(im)
Please feel free to change the parameters to the values you want
- If you need to know in detail about the input parameters of the function, please open the file
polygon_shape_placement.m
. In that file you can see the source code as well as the explanatory documentation of the function - Please feel free to review the report.pdf document where we show more examples of this tool.