Select Git revision
getCombinedImage.m
Andrew Cohen authored
getCombinedImage.m 1.52 KiB
%--------------------------------------------------------------------------
% getCombinedImage.m
% concatenating images from array of structures rg for file comprssion
% (c) 2015-2016 Andrew R. Cohen
%
%
% This is the source code for the paper:
%
% R. Joshi, W. Mankowski, M. Winter, J. S. Saini, T. A. Blenkinsop, J. H. Stern, S. Temple and
% A. R. Cohen, "Automated measurement of cobblestone morphology for
% characterizing Stem cell-Derived Retinal Pigment Epithelial cell cultures".
%
% This is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% The software is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% in file "gnu gpl v3.txt". If not, see <http://www.gnu.org/licenses/>.
%
%
% Andrew Cohen
% acohen 'at' coe.drexel.edu
% http://bioimage.coe.drexel.edu
%
%--------------------------------------------------------------------------
function im = getCombinedImage(rg);
im=[];
for i=1:1 %length(rg)
rowIm=[];
for j=1:length(rg)
rowIdx = mod(i+j-2,length(rg))+1;
rowIm=[rowIm rg(rowIdx).im];
end
im=[im;rowIm];
end