countNuclei: Count the number of distinct objects in an image (nuclei)

Description Usage Arguments Details Value References Examples

View source: R/nucleiTool.R

Description

The following function uses several functions from EBImage to perform counting of cell nuclei in selected image. *Frame of only nuclei is recommended (typically frame #3), counting accuracy decreases if composite image is used.

Usage

1

Arguments

img

A single-frame grayscale Image containing ONLY nuclei signals.

Details

When it comes to counting cellular objects (most commonly nuclei), The key steps are:

Value

Returns a numeric value of the number of nuclei counted.

References

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

Xiaolu Yang, Xuanjing Shen, Jianwu Long, Haipeng Chen, (2012): An Improved Median-based Otsu Image Thresholding Algorithm, AASRI Procedia,Volume 3, pp. 468-473, link https://www.sciencedirect.com/science/article/pii/S2212671612002338

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Example 1
rabbit = loadImage(system.file('extdata/Rabbit_01.tif', package='MyoManager'))
rNuc = selectFrame(rabbit, 3)
countNuclei(rNuc)
viewImage(rNuc)

# Example 2
mouse = loadImage(system.file('extdata/Mouse_01.tiff', package='MyoManager'))
mNuc = selectFrame(mouse, 3)
countNuclei(mNuc)
viewImage(mNuc)

karenkuang37/MyoManager documentation built on Dec. 21, 2021, 5:18 a.m.