bahanonu / ciatah

CIAtah (pronounced cheetah): a software package for calcium imaging analysis of one- and two-photon imaging datasets. Documentation: https://git.io/ciatah_docs. Formerly known as calciumImagingAnalysis (ciapkg).
https://git.io/ciatah_docs
MIT License
80 stars 20 forks source link

issue loading AVI -> variable does not support dot indexing (solved) #123

Open dprotter opened 1 year ago

dprotter commented 1 year ago

Line 415 in ciapkg.io.loadMovieList.m seems to have an extra line that needs to be commented out in the AVI case, or else AVIs will fail to load correctly. I commented out that line and everything ran smoothly.

case 'avi'
    xyloObj = VideoReader(thisMoviePath);
    dims.x(iMovie) = xyloObj.Height;
    dims.y(iMovie) = xyloObj.Width;
    dims.z(iMovie) = xyloObj.NumberOfFrames;
    dims.one(iMovie) = xyloObj.Height;
    dims.two(iMovie) = xyloObj.Width;
    dims.three(iMovie) = xyloObj.NumberOfFrames;
    tmpFrame = read(xyloObj, 1, 'native');
>   %tmpFrame = tmpFrame.cdata;
    %tmpFrame = readFrame(xyloObj);
bahanonu commented 1 year ago

Thanks, I had already added a work-around internally for this (e.g. for color and other AVIs) since just commenting out that line as is will lead to errors in other AVIs.

I'll push an minor update to the public repo today.

dprotter commented 1 year ago

Ah, interesting, good to know!