imsubs_resize

PURPOSE ^

Resizes subs in subs/vals image representation by resizevals.

SYNOPSIS ^

function subs = imsubs_resize( subs, resizevals )

DESCRIPTION ^

 Resizes subs in subs/vals image representation by resizevals.

 imsubs is a 'bag of pixels' image representation which is useful for sparse arrays.

 This essentially repleces each sub by sub.*resizevals.  The only subtlety is that in
 images the leftmost sub value is .5, so for example when resizing by a factor of 2, the
 first pixel is replaced by 2 pixels and so location 1 in the original image goes to
 location 1.5 in the second image, NOT 2.  It may be necessary to round the values
 afterward.

 INPUTS
   subs        - subscripts of point locations (n x d) 
   resizevals  - k element vector of shrinking factors

 OUTPUTS
   subs    - transformed subscripts of point locations (n x d) 

 DATESTAMP
   29-Sep-2005  2:00pm

 See also IMSUBS2ARRAY

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-May-2006 23:48:50 by m2html © 2003