In a code segment of the cluster analysis scripts, in a region looking approximately like below, the code should be changed to replace imgSize with a direct extraction of stack size. It is the first line here that needs adjustment.
NucMask = false(size(imgStack{S5P_SegChannel}));
NucMask(props.VoxelIdxList{nn}) = true;
NucMask_subImage = NucMask(...
boxArray(2)+0.5:boxArray(2)+boxArray(5)-0.5,...
boxArray(1)+0.5:boxArray(1)+boxArray(4)-0.5,...
boxArray(3)+0.5:boxArray(3)+boxArray(6)-0.5);
In a code segment of the cluster analysis scripts, in a region looking approximately like below, the code should be changed to replace imgSize with a direct extraction of stack size. It is the first line here that needs adjustment.