imgPrewitt {biOps}R Documentation

Prewitt Edge Detection Method

Description

This function enhaces image's edges by convoluting with the Prewitt method matrices:
H_r H_c
1 0 -1 || -1 -1 -1
1 0 -1 || 0 0 0
1 0 -1 || 1 1 1

Usage

imgPrewitt(imgdata)

Arguments

imgdata The image

Value

return an imagedata object

Examples

        ## Not run: 
                x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
                y <- imgPrewitt(x)
        
## End(Not run)

[Package biOps version 0.2.1 Index]