boxfilter

From DavinciWiki
Revision as of 15:46, 20 February 2006 by Keith (Talk | contribs)

Jump to: navigation, search


64-bit SafeYes

Description

Fast convolve (average) for uniform, rectangular masks.

Arguments and Return Values

Arguments: a numeric array, a box size and an ignore value

Return Value: a float numeric array the x and y dimensios and organization of the original with convolved data.

Usage

Syntax: boxfilter(obj, size, ignore, verbose)

The size can be either a size in x and y defining a rectangle or a square of side length of 'size'.

Pixels containing the ignore value will be filled in if they are within one half of a box length from a pixel that has a valid value.

Examples

 dv> a
 345x600x1 array of byte, bsq format [207,000 bytes]

 dv> bx=boxfilter(a,x=21,y=1,ignore=0)
 345x600x1 array of float, bsq format [828,000 bytes]

 dv> by=boxfilter(a,x=1,y=21,ignore=0)
 345x600x1 array of float, bsq format [828,000 bytes]

 dv> bboth=boxfilter(a,size=21,ignore=0)
 345x600x1 array of float, bsq format [828,000 bytes]

Images

bxfltpic1.png bxfltpic2.png bxfltpic3.png bxfltpic4.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left


Recent Core Changes

Modified On: 07-06-2009

Personal tools