Extracting rgb data from "image batch processor" results
显示 更早的评论
Good afternoon,
I have dozens of images that I run with "image batch processor". I crop several squares from each image and then analyze each square. My problem lies with extracting raw data into excel file. I am trying to have a string of RGB pixels of each section that i can then analyze in excel.
Script looks something like this:
function results = multicrop2(im)
imc1 = imcrop(im,[1450 1020 180 180]);
imc2 = imcrop(im,[1860 1020 180 180]);
imc3 = imcrop(im,[1450 1440 180 180]);
imc4 = imcrop(im,[1860 1440 180 180]);
Ir1=reshape(imc1,[],3);
Ir2=reshape(imc2,[],3);
Ir3=reshape(imc3,[],3);
Ir4=reshape(imc4,[],3);
results.Ir1 = Ir1;
results.Ir2 = Ir2;
results.Ir3 = Ir3;
results.Ir4 = Ir4;
I then export results into a workspace and it gives me a 44x4 table. Each element of the table is a 32761x3 uint8 cell which i can open as a raw rgb table data (which is what I need). My goal is to either "unpack" each of the cells into a long string of 3 columns stacked next to each other that i can then copy and paste to excel or to generate an excel file that can populate it with the raw data in a logical way.
Any help would be greatly appreciated. Thank you!
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Printing and Saving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!