Createsphereimages

From Eigenvector Research Documentation Wiki
Revision as of 12:22, 17 February 2012 by imported>Scott (Created page with "===Purpose=== Make images of mono-sized spheres. ===Synopsis=== :[x,y] = createsphereimages(flag,sizes) ===Description=== This function is used to create some basic 128x128 textu...")
(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(3,[8 10 12]);
for i=1:3, imagesc(x{i}), axis image, shg, pause, end

See Also

createhvimages, fft_texture, semivar, svd_texture