Changeset 700


Ignore:
Timestamp:
Dec 12, 2013, 4:01:14 PM (11 years ago)
Author:
sommeria
Message:

bug in sub_background corrected for color images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/sub_background.m

    r676 r700  
    218218try
    219219    Afirst=read_image(filecell{1,1},FileType{1},MovieObject{1},frame_index{1}(1));
    220     [npy,npx]=size(Afirst);
     220    [npy,npx,nbcolor]=size(Afirst);% the argument nbcolor is important to get npx right for color images
    221221    if strcmp(class(Afirst),'uint8') % case of 8bit images
    222222        Ak=zeros(npy,npx,nbaver_ima,'uint8'); %prealocate memory
Note: See TracChangeset for help on using the changeset viewer.