Changeset 386 for trunk/src/civ.m


Ignore:
Timestamp:
Apr 2, 2012, 4:23:26 PM (12 years ago)
Author:
sommeria
Message:

several bugs corrected
for dealing with color movies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r384 r386  
    24252425    movieobject1=[];%default
    24262426    if strcmpi(ext_ima,'.avi')
    2427         hhh=which('mmreader');
    2428         if ~isequal(hhh,'')&& mmreader.isPlatformSupported()% if the mmreader function is found (recent version of matlab)
     2427        if ~isempty(which('mmreader'))% if the mmreader function is found (recent version of matlab)
    24292428            type_ima1='movie';
    2430             movieobject1=mmreader([filebase_ima2 ext_ima]);
     2429            movieobject1=mmreader([filecell.filebase ext_ima]);
    24312430        else
    24322431            type_ima1='avi';
     
    24452444    movieobject2=[];
    24462445    if strcmpi(ext_ima,'.avi')
    2447         hhh=which('mmreader');
    2448         if ~isequal(hhh,'')&& mmreader.isPlatformSupported()% if the mmreader function is found (recent version of matlab)
     2446        if ~isempty(which('mmreader'))% if the mmreader function is found (recent version of matlab)
    24492447            type_ima2='movie';
    2450             movieobject2=mmreader([filebase_ima2 ext_ima]);
     2448            movieobject2=mmreader([filecell.filebase ext_ima]);
    24512449        else
    24522450            type_ima2='avi';
Note: See TracChangeset for help on using the changeset viewer.