weight array

From DavinciWiki
Jump to: navigation, search

Description

Create a 2 dimensional weighting array for use with the interpolated filling algorithms ifill and thm.kfill.

Arguments and Return Values

Arguments: A 'radius' designating the dimension and a 'power' defining the dependence of the weighting with distance

Return Value: A numeric array

Usage

Syntax: weight_array(radius, power)

'radius' - A number designating the length of the weight array side as radius*2 + 1.

'power' - A number defining the 1/(r^power) dependence of the weighting of pixels from the center of the array.

Examples

dv> a=weight_array(6,2)
Division by zero, 1 times
13x13x1 array of float, bsq format [676 bytes]

Images

weight array.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 02-15-2006
Modified On: 09-22-2010

Personal tools