clean_image_border: Makes all the values in the edges of a matrix or image a...

Description Usage Arguments Examples

View source: R/utils.R

Description

Makes all the values in the edges of a matrix or image a value

Usage

1
clean_image_border(img, clean_size, val = 0)

Arguments

img

image to use

clean_size

number of rows or cols to remove on each edge

val

value to be used to replace 0

Examples

1
2
3
4
x = readImage(system.file('images', 'shapes.png', package='EBImage'))
sobel <- sobel_filter(x, 15)
display(sobel, "raster")
display(clean_image_border(sobel, 50, 0))

jspaezp/clasifierrr documentation built on March 2, 2020, 11:20 a.m.