Description Usage Arguments Value Examples
This function applies a mask matrix to a jpeg image and extract statstical metrics for each chromatic coordinate on R, G and B.
1 | extractCCC(path, m)
|
path |
a character string, path to the JPEG file |
m |
a binary mask, mask binary matrix (0 for included, 1 for not) |
The function returns statistical metrics for each color channel. It returns NULL, if dimensions do not agree.
1 2 3 | m <- tiff::readTIFF(system.file(package = 'xROI', 'dukehw-mask.tif'))
jpgFile <- system.file(package = 'xROI', 'dukehw.jpg')
cc <- extractCCC(jpgFile, m)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.