Learn R Programming

CRImage (version 1.20.0)

labelCells: Interactive Session for cell labeling

Description

The functions creates an interactive session in order to label cells with their classes. The labeled cells can be used as training set for the classifier. Note!! This is until now only tested for MacOsX.

Usage

labelCells(img, segmentedImage, classes, classColours, nblocks = 3, labeledPoints = NULL, filename = NULL, filenameImage = NULL,transformCoordinates=FALSE)

Arguments

img
The image.
segmentedImage
The segmented image.
classes
The possible class labels.
classColours
The colors for the class labels.
nblocks
The image can be separated in several blocks, as zooming is not possible.
labeledPoints
Labeled cells from a previous training session.
filename
The table of labeled cells is saved at this location.
filenameImage
The image with the labeled cells is saved at this location.
transformCoordinates
deprecated

Value

A table with columns: index: the index of the cell in the segmented image. x: x-coordinate of the cell y: y-coordinate of the cell classCell: Label of the cell xLocal: Local x coordinate in the subimage(block) yLocal: Local y coordinate in the subimage(block) block: Block number in which the cell arises.

Details

Use the keys: a: In order to add a label to a cell. d: In order to delete a label from a cell. c: To switch between classes. q: To quit the interactive session. r: To refresh the session (labeled cells will be shown after refreshing)

Examples

Run this code
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as

Run the code above in your browser using DataLab