ifill

From DavinciWiki
Jump to: navigation, search


Description

Interpolated image fill

Arguments and Return Values

Arguments: A numeric array, a radius and a fill value

Return Value: The original array filled in

Usage

Syntax: ifill(object = VAL, radius = INT, fill = VAL)

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

The input image is searched a strip at a time in a particular scan direction, searching for values equal to the fill value. If a run of 1 or more pixels of the fill value are found, and the run does not extend more than <radius> pixels, the fill values are replaced with values interpolated from the non-fill values bordering the gap.

This process is repeated 4 times, corresponding to scan directions running north/south, east/west, ne/sw, and nw/se. The 4 images are averaged together, ignoring any remaining fill values, and the non-fill values from the original image are copied in place.

The <radius> value defaults to 3.

The <fill> value defaults to 0.

Examples

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

dv> b=ifill(a,radius=11,fill=0)
320x240x1 array of float, bsq format [307,200 bytes]

Images

jfjll.png jfjll2.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