subsToArray

PURPOSE ^

Converts subs/vals image representation to array representation.

SYNOPSIS ^

function I = subsToArray( subs, vals, siz, fillVal )

DESCRIPTION ^

 Converts subs/vals image representation to array representation.

 Constructs array from subs/vals representation.  Similar to Matlab's
 sparse command, except doesn't actually produce a sparse matrix.  Uses
 different conventions as well.

 USAGE
  I = subsToArray( subs, vals, siz, [fillVal] )

 INPUTS
  subs    - subscripts of point locations (n x d)
  vals    - values at point locations (n x 1)
  siz     - image size vector (1xd) - must fully contain subs
  fillVal - [0] value to fill array with at nonspecified locs

 OUTPUTS
  I       - array of size siz

 EXAMPLE

 See also SUB2IND2, SPARSE

 Piotr's Computer Vision Matlab Toolbox      Version 2.0
 Copyright 2014 Piotr Dollar.  [pdollar-at-gmail.com]
 Licensed under the Simplified BSD License [see external/bsd.txt]

Generated by m2html © 2003