Learn R Programming

SurfRough (version 0.0.1.0)

KernelRectangular: Build a rectangular kernel of size X x Y

Description

Build a rectangular kernel of size X x Y

Usage

KernelRectangular(lenx, leny)

Value

The matrix (square/rectangular) with the selected pixels

Arguments

lenx

The size in pixels along x

leny

The size in pixels along y

Examples

Run this code
#A rectangular moving window 5x5 pixels
w=KernelRectangular(5,5)
w

Run the code above in your browser using DataLab