Description Usage Arguments Details Value Author(s) References Examples
This function calculates the DHI value for the drug image extracted from MSI data.
1 | CalculateDHI(drugImg,Nu=1,QuantLevel=NULL,maskImg=NULL)
|
drugImg |
Input matrix containing the pixel intensities |
maskImg |
Matrix identifying the pixels belonging to the tissue (1 tissue, 0 background). It must have the same size as drugImg |
QuantLevel |
Maximum possible gray-levels in drug ion image. default = 0, i.e., original image |
Nu |
Lowest size-zone value used for DHI calculation. default = 1 |
The algorithm is based on the following workflow:
Derive new quantized drug image at user-defined qunatization value.
Derive gray-level size-zone matrix (GLSZM) for new drug quantized image (default value =0).
Derive homogeneous size-zone value from GLSZM at user-defined Nu value (default value =1).
Normalized overall value with complete tumor area which is obtained from tumor mask file.
DHI value for given drug ms file
Mridula Prasad mridula.prasad@fmach.it
https://github.com/pietrofranceschi/HomogenMSI
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## load package
library(HomogenMSI)
data("DHIimages")
## Input drug and mask images
drugImg = DHIimages[[20]]
maskImg = DHIimages[[1]]
maskImg[maskImg !=0] =1
#Calculate DHI with default input parameters
print(CalculateDHI(drugImg,maskImg=maskImg))
# calculate DHI with user-defined Nu value
print(CalculateDHI(drugImg,maskImg=maskImg,QuantLevel=0,Nu=5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.