CellCounter


Pipeline

Namespace: CounterFunctions

Example functions of how to use the functions in the other modules. They can be modiefied according to the specific needs of the user.

Functions and values

Function or valueDescription
processImage(...)
Signature: filePath:string -> height:int -> width:int -> radius:float -> multiplier:float -> int * (type)

Applies the image processing steps to count images from an impoved Neubauer counting chamber. filePath is the path to the image to be analyzed. height and width are the dimensions of the rectangle to be analyzed in pixels. radius is the radius of the cells that should be counted in pixels. multiplier increases or decreases the cut-off value for the thresholding function. In addition to the counting result it also returns a chart tupled with it.

processImages(...)
Signature: folderPath:string -> height:int -> width:int -> radius:float -> multiplier:float -> (int * (type)) []

Applies the processing function for a single image to a folder of images. folderPath is the path to the images to be analyzed. height and width are the dimensions of the rectangle to be analyzed in pixels. radius is the radius of the cells that should be counted in pixels. multiplier increases or decreases the cut-off value for the thresholding function.

Fork me on GitHub