Createsphereimages

From Eigenvector Research Documentation Wiki
Revision as of 12:32, 17 February 2012 by imported>Neal (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

See Also

createhvimages, fft_texture, semivar, svd_texture