I have a jpeg image that I am attempting to extract the RGB values from in R.
Here is the image:
I am able to access the pixel values quite easily with the following code:
library(jpeg)
y <- readJPEG("MOLD_1.jpg")
head(y)
This returns:
[1] 0.9450980 0.9450980 0.9450980 0.9490196 0.9490196 0.9529412
I'm interested in knowing the color values associated with those pixels. I've tried to use alot of packages to figure this out including raster, pixmap, etc.
I'm struggling pretty bad - any help would be appreciated.