AddHoles: Corrupt a clean image.

Description Usage Arguments Value Examples

View source: R/Rfunctions.R

Description

Corrupt a clean image with randomly selected locations. The corrupted pixcels are set to 0.

Usage

1
AddHoles(I, pc)

Arguments

I

Clean image.

pc

Percetage of pixels to corrupt

Value

A corrupted image corruptedImage and maskImage to record the corrupted locations.

Examples

1
2
I=lena_crop
I_noise=AddNoise(I,30)

GSCAD documentation built on Oct. 6, 2017, 5:04 p.m.

Related to AddHoles in GSCAD...