jfjll

From DavinciWiki
Jump to: navigation, search


Description

An interpolated filling routine.

Arguments and Return Values

Arguments: A numeric array and filling parameters

Return Value: A numeric array containing the input with filled in points

Usage

Syntax: jfjll(object = VAL, radius = INT, fill = VAL, wrap = BOOL, neighbors = INT)

The jfjll() function 'fills in gaps' in an image.

The input image is searched for holes (values equal to the fill value). For each hole, the input image is scanned in 8 directions for non-fill values. If <neighbors> non-fill values are found within <radius> pixels, a weighted average of these values is used to fill in the hole.

The weighting used is r*r.

The value <radius> defaults to 3.

The value <fill> defaults to 0.

The value <neighbors> defaults to 5.

Examples

dv> a
320x240x1 array of byte, bsq format [76,800 bytes]

dv> b=jfjll(a,radius=11,neighbors=3)
320x240x1 array of float, bsq format [307,200 bytes]

Images

jfjll.pngjfjll2.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 03-27-2006

Personal tools