analyseParticles: Analyse

Description Usage Arguments Value Author(s) Examples

View source: R/analyseParticles.R

Description

Cleans a given binary image according to area criteria specified by the user.

Usage

1
analyseParticles(Image,MaxSize,MinSize, isMask)

Arguments

Image

Binary image

MaxSize

Maximum area allowed for objects

MinSize

Minimum area allowed for objects

isMask

In case isMask=1, the function assumes that the binary images contains nuclei. Nuclei with an area smaller than MaxSize and greater than MinSize will be removed. If isMask=0, the function assumes that the binary images contains probes and subsequently probes with an area smaller than MinSize or larger than MaxSize are removed

Value

Returns a labeled image

Author(s)

Karesh Arunakirinathan

Examples

1
2
3
4
5
f = system.file( "extdata", "SampleFISHgray.jpg", package="FISHalyseR")
img = readImage(f)

anaImg <- analyseParticles(img, 20000, 1000,0)
## anaImg contains now the cleaned-up image

FISHalyseR documentation built on Nov. 8, 2020, 5:30 p.m.