get_count_from_xy_coor {kyotil} | R Documentation |
Imaging analysis for spatial region
Description
Counting the number of masks in a rectangular region
Usage
get_count_from_xy_coor(file, topleft, bottomright, image, plot)
Arguments
file |
_sizes_coordinates.txt |
topleft |
topleft (x,y) coordiate for a rectangular box |
bottomright |
bottomright: bottomright (x,y) coordiate for a rectangular box |
image |
image: an image for plotting |
plot |
plot: plot=TRUE shows image with rectangular box |
Details
This function counts cells inside of rectangular box made by the topleft and bottomright xy-coordinates.
Value
The number of masks inside of the rectangular box
Author(s)
Sunwoo Han
Examples
#get_count_from_xy_coor(file='M926910_Position1_CD3-BUV395_sizes_coordinates.txt',
#topleft=c(500,0), bottomright=c(1392,500),
#image='M926910_Position1_CD3-BUV395.tiff', plot=TRUE)
[Package kyotil version 2024.5-8 Index]