Рет қаралды 6,717
In this video, I share a macro (available here: doi.org/10.5281/zenodo.5595203) that automates the extraction of summary statistics from channels of three colorspaces (RGB, Lab, and HSB). This macro functions to 1) open an image from a directory folder, 2) threshold the image to segment out the object of interest from the background then "clear" the background so it is completely black, 3) separate the image into the component channels for each color space, 4) extract summary statistics for each channel in each colorspace, 5) export these summary statistics to a .csv file.
I also provide an optional R script (available here: doi.org/10.5281/zenodo.5595203) to automate the reformatting of the .csv file with the summary statistics from the imageJ so each channel is transposed into distinct columns. The final .csv file produced by running this code should have each image as a row, with each summary statistic (mean, mode, min, max, etc.) for each channel in each colorspace presented in a separate column for that image (row).
Step-by-step directions, color analysis macro, and R script available for download here: doi.org/10.5281/zenodo.5595203
ImageJ/Fiji available for download here: imagej.net/software/fiji/
Rstudio available for download here: www.rstudio.com/products/rstu...