Createhvimages: Difference between revisions
Jump to navigation
Jump to search
imported>Scott |
imported>Scott No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 7: | Line 7: | ||
====INPUTS==== | ====INPUTS==== | ||
* '''flag''' = defines the image type | * '''flag''' = defines the image type | ||
* '''flag''' = 0: similar to 1, 19 | * '''flag''' = 0: similar to 1, 19*3 different images. | ||
* '''flag''' = 1: squares and spaces same size, 5 | * '''flag''' = 1: squares and spaces same size, 5*3 different images. | ||
* '''flag''' = 2: squares bigger than spaces, 7 | * '''flag''' = 2: squares bigger than spaces, 7*3 different images, and | ||
* '''flag''' = 3: squares smaller than spaces, 7 | * '''flag''' = 3: squares smaller than spaces, 7*3 different images. | ||
====OUTPUTS==== | ====OUTPUTS==== | ||
* '''x''' = M by 3 cell array of images: | * '''x''' = M by 3 cell array of images: | ||
Line 17: | Line 18: | ||
* '''column''' 3 contains squares. | * '''column''' 3 contains squares. | ||
* '''spac''' = 2 column matrix with the space size in column 1 and square size in column 2 (in pixels). | * '''spac''' = 2 column matrix with the space size in column 1 and square size in column 2 (in pixels). | ||
Example | ===Example=== | ||
x = createhvimages(3); | x = createhvimages(3); | ||
imagesc(x{4,1}), axis image, shg | imagesc(x{4,1}), axis image, shg | ||
===See Also=== | ===See Also=== | ||
[[fft_texture]], [[semivar]], [[svd_texture]] | [[createsphereimages]], [[fft_texture]], [[semivar]], [[svd_texture]] |
Latest revision as of 11:22, 17 February 2012
Purpose
Creates horizontally and vertically striped images.
Synopsis
- x = createhvimages(flag)
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 = 0: similar to 1, 19*3 different images.
- flag = 1: squares and spaces same size, 5*3 different images.
- flag = 2: squares bigger than spaces, 7*3 different images, and
- flag = 3: squares smaller than spaces, 7*3 different images.
OUTPUTS
- x = M by 3 cell array of images:
- column 1 contains horizontal stripes,
- column 2 contains vertical stripes, and
- column 3 contains squares.
- spac = 2 column matrix with the space size in column 1 and square size in column 2 (in pixels).
Example
x = createhvimages(3); imagesc(x{4,1}), axis image, shg