Skip to content

Commit

Permalink
bug stitching blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tanguyduval committed Mar 27, 2017
1 parent f881a17 commit 17ba769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Blockprocessing/as_listcell2axonlist.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
listcell_seg{nb}.seg=as_axonlist_changeorigin(axonlistcell{nb},neworigin);
end
% remove empty
rm = ~cellfun(@length,axonlistcell);
rm = ~cellfun(@length,axonlistcell(:));
if min(rm) % no axons in any block
axonlist = axonlistcell{1}; return
else
listcell_seg(rm)=[];
end

% list of cell 2 one list only
axonlist(length(axonlistcell(:)))=listcell_seg{end};
axonlist(length(listcell_seg))=listcell_seg{end};
[axonlist.seg]=deal(listcell_seg{:});
axonlist=cat(2,axonlist.seg); axonlist=cat(2,axonlist.seg); axonlist=axonlist(logical([axonlist.myelinAera])); % weird but works (fast).. keep everything

Expand Down

0 comments on commit 17ba769

Please sign in to comment.