imposeDefect | R Documentation |
Superimposes a local defect (a 2D stochastic AR(1) image from sarGen
) on a given image.
imposeDefect(img, loc = NULL, a = 4, b = 10, eps = 0.05, phi1 = 0, phi2 = 0, sigma = 0.01)
img |
the image to be superimposed a defect. |
loc |
the location of the defect in the generated image. |
a |
|
b |
|
eps |
controls the curvature of the ellipsoidal defect. |
phi1 |
the parameter |
phi2 |
the parameter |
sigma |
the parameter |
The defect is generated using sarGen
.
A list of the following:
img |
the generated image in the matrix format. |
defect.info |
the information of the defects. |
Anh Bui
Bui, A.T. and Apley., D.W. (2018a) "A Monitoring and Diagnostic Approach for Stochastic Textured Surfaces", Technometrics, 60, 1-13.
## generate an image without defects img <- sarGen(m = 100, n = 100, border = 50) image(img,col=gray(c(0:32)/32)) ## superimpose a defect img2 <- imposeDefect(img) image(img2$img,col=gray(c(0:32)/32))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.