View source: R/cell_segmentation.R
doCellSegmentation | R Documentation |
segment cells in Dapi image
doCellSegmentation(
raster_img,
folder_path,
reduce_resolution = 4,
overlapping_pixels = 50,
python_path = NULL
)
raster_img |
raster image; Dapi image of cells |
folder_path |
character; where to save the file |
reduce_resolution |
numeric; the original Dapi image from Vizgen works better in the Mesmer algorithm if its resolution is reduced 4 times. |
overlapping_pixels |
numeric; the number of pixels to overlap when calculating the rolling window |
python_path |
specify specific path to python if required |
This function is a wrapper for the Mesmer algorithm implemented in python. It segments the cells in tissue by applying a rolling window on the complete image. It saves all the files in the specified folder with the coordinates of the tile: sx (start x), ex (end x), sy, and ey.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.