Description Usage Arguments Value References Examples
View source: R/imageProcessing.R
The following function uses makeBrush
to generate
a filter of choice and applies it to the image. Blurring tends to be
useful prior to analyzing individual objects in an image with ill-defined
edges and/or uneven intensities.
1 2 3 4 5 6 |
img |
An object of Image class specific to EBImage, stored as multi- dimensional arrays containing the pixel intensities. |
brush_size |
A |
brush_shape |
A |
sigma |
An optional numeric containing the standard deviation of the Gaussian shape.This argument is relevant only for the Gaussian brush shape.Default is 0.3. |
A blurred version of the input image.
Gregoire Pau, Florian Fuchs, Oleg Sklyar, Michael Boutros, and Wolfgang Huber (2010): EBImage - an R package for image processing with applications to cellular phenotypes. Bioinformatics, 26(7), pp. 979-981, link (https://bioconductor.org/packages/release/bioc/html/EBImage.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Example 1
# select nuclei channel in a tiff file
mouse = loadImage(system.file('extdata/Mouse_01.tiff', package='MyoManager'))
mNuc = selectFrame(mouse,3)
viewImage(mNuc)
# apply the blurring brush
img_blur <- blurImage(mNuc, 11, 'gaussian', sigma = 5)
# visualize blurred nuclei - brightening is optional (for display purpose)
viewImage(intensityCtrl(img_blur, 0, 3))
# Example 2
rabbit = loadImage(system.file('extdata/Rabbit_01.tif', package='MyoManager'))
rNuc = selectFrame(rabbit, 3)
viewImage(rNuc)
img_blur = blurImage(rNuc, 11, 'line')
viewImage(img_blur)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.