powered by
This function apply a mask matrix to a jpeg image and extract statstical metrics for each chromatic coefficients on R, G and B.
extractCCC(path, m)
path to the JPEG file
mask binary matrix (1 for selected)
The function returns statistical metrics for each color channel. The function returns NULL, if dimensions do not agree.
# NOT RUN { m <- tiff::readTIFF(system.file(package = 'xROI', 'dukehw-mask.tif')) jpgFile <- system.file(package = 'xROI', 'dukehw.jpg') cc <- extractCCC(jpgFile, m) # }
Run the code above in your browser using DataLab