Scilab Function
Last update : 31/8/2006
pixel_array - create a pixel array.
Calling Sequence
-
[pix_arr]=pixel_array( x_axes[, y_axes])
Parameters
-
x_axes
: the number of elements in x direction.
-
y_axes
: the number of elements in y direction. y_axes = x_axes if defaulted .
-
pix_arr
: the output pixel array. all elements are initialized to zeros.
Description
create a pixel array. this array is designed to hold and manipulate rectangular images
Examples
dim=100;arr=[];
for i=1:dim
for j=1:dim
sgn=i*j;
arr=[arr,sgn];
end
end
pix_arr=pixel_array(dim);
pix_arr=set_pix_arr_data(pix_arr,arr);
a=pixarr_data(pix_arr);surf(a);
Author
Chen jingyuan, Gan guangyong (IAPCM, Beijing,China.)
See Also
pixarr_data
,
set_pix_arr_data
,
multi_pixarr
,