element_count: Counts for elements

Description Usage Arguments Details Value

View source: R/element_count.R

Description

Calculates total number of counts in both images and counts for overlap, counts only in slice_image1, counts only in slice_image2.

Usage

1
element_count(slice_no, targetlabel, slice_img1, slice_img2)

Arguments

slice_no

slice_no with integer format

targetlabel

Label_No with integer format

slice_img1

Slice image for filename1

slice_img2

Slice image for filename2

Details

Inputs one slice number and one label number. Function calculates counts for total number of pixels in both images, pixels for overlap in the given slice for the given label number, pixels only exist in slice_image1 and pixels only exist in slice_image2. This function is primarily used by other functions.

Value

Total counts for all label numbers and slice numbers in both images, overlap, only in slice_image1 and only in slice_image2.


yupingikub/IKUB documentation built on Dec. 23, 2021, 8:20 p.m.