Createsphereimages: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
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...")
 
imported>Neal
 
Line 15: Line 15:
* '''y''' = sizes in pixels.
* '''y''' = sizes in pixels.
===Example===
===Example===
  x = createsphereimages(3,[8 10 12]);
  x = createsphereimages(2,12);
  for i=1:3, imagesc(x{i}), axis image, shg, pause, end
  imagesc(x{1}), axis image
 
===See Also===
===See Also===
[[createhvimages]], [[fft_texture]], [[semivar]], [[svd_texture]]
[[createhvimages]], [[fft_texture]], [[semivar]], [[svd_texture]]

Latest revision as of 12:32, 17 February 2012

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