Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


GSCAD (version 0.1.0)

AddHoles: Corrupt a clean image.

Description

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

Usage

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

Run this code
# NOT RUN {
I=lena_crop
I_noise=AddNoise(I,30)
# }

Run the code above in your browser using DataLab