Hi,
I am quite new with R and intend to generate a single plot of image histogram from multiple images.
Found that this EBImage package will generate quite simple method to generate the histogram.
I used these simple lines:
library(EBImage)
files <- list.files(path=path, pattern="*.tiff")
histogram <- hist(readImage(files)
However, since my images are too big (2k x 2k px).
Then, I got an idea to put it in a loop. So, I made this:
for(i in 1:64) {
#reading image
read <- readImage(files[i])
#making histogram
histogram <- hist(read)
}
But, this loop only gather each of the histogram. I am not sure how to make it simpler and faster.
I was thinking to grab only counts and intensity number from each of the image and pool them in a multidimensional array. I just don't have a clue to do it. Maybe anyone in this forum could help me regarding this issue?
Thanks a lot!
Best
IS