Description Usage Arguments Details Value Examples

These are alternatives to
`EBImage::filter2()`

and `EBImage::medianFilter()`

for
smooth and median filtering respectively. These functions have many options
for dealing with `NA`

values which `EBImage`

's functions lack.

1 2 3 | ```
median_filter(mat, size = 1L, na_rm = FALSE, na_count = FALSE)
smooth_filter(mat, size = 1L, na_rm = FALSE, na_count = FALSE)
``` |

`mat` |
A matrix (representing an image). |

`size` |
An integer; the median filter radius. |

`na_rm` |
Should |

`na_count` |
If this is TRUE, in each median calculation, if the majority
of arguments are |

The behavior at image boundaries is such as the source image has been padded with pixels whose values equal the nearest border pixel value.

A matrix (the median filtered image).

1 2 3 4 5 6 7 8 9 10 | ```
m <- matrix(1:9, nrow = 3)
m[2:3, 2:3] <- NA
print(m)
median_filter(m)
median_filter(m, na_rm = TRUE)
median_filter(m, na_count = TRUE)
smooth_filter(m)
smooth_filter(m, na_rm = TRUE)
smooth_filter(m, na_count = TRUE)
``` |

nandb documentation built on May 17, 2021, 1:09 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.