Createsphereimages
From Eigenvector Documentation Wiki
Visited: Createsphereimages
Contents |
Purpose
Make images of mono-sized spheres.
Synopsis
- [x,y] = createsphereimages(flag,sizes)
Description
This function is used to create some basic 128x128 textured images: horizontally striped, vertically striped, and squares blocks.
INPUTS
- flag = defines the image type
- flag = 1: randomly spaced spheres.
- flag = 2: ~regularly spaced spheres.
- sizes = vector with each entry corresponding to a sphere diameter (in pixels) {default sizes = [8 10 12 14 16 18]}.
OUTPUTS
- x = cell array of images, each cell is an image corresponding to the size in (sizes).
- y = sizes in pixels.
Example
x = createsphereimages(2,12); imagesc(x{1}), axis image