EMBED Name
EMBED Purpose
Embed an array in a larger array. Category
Calling Sequence
b = embed(a,w) Inputs
a = input array (2-d). in
w = number of elements to add around edge. in
Keyword Parameters
Keywords
OUTPUT_SIZE=[nx,ny] Optional output array size
instead of giving w. Input array will be centered
in the returned result. w is not needed if this is used.
Only need to give a single value for a square output.
VALUE=v. Value for added border (def=0).
IX0=ix0 IY0=iy0 Returned embed indices (pixels).
This is the lower left corner of the original image
in the output image.
IX1=ix1 IY1=iy1 Returned embed indices (pixels).
This is the upper right corner of the original image
in the output image.
/EDGE Extend original image edge pixels.
Outputs
b = resulting larger array with a centered. out
Common Blocks
Notes
Modification History
R. Sterner, 13 Dec, 1990
R. Sterner, 2009 Sep 03 --- Added OUTPUT_SIZE, IX0, IY0.
R. Sterner, 2009 Sep 09 --- Added /EDGE.
R. Sterner, 2010 May 04 --- Converted arrays from () to [].
Copyright (C) 1990, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.