On 17 February 2010 17:42, Søren Hauberg <so...@hauberg.org> wrote:
> ons, 17 02 2010 kl. 17:37 -0500, skrev Carnë Draug:
>> Hi. I upgraded to 3.2.2 now. It does open the file but it only opens
>> the first image of the stack (frame number 1). When I run imfinfo, I
>> also can't see any information about the number of frames. So, no
>> error, it seems to just completely ignore the rest.
>
> Ohh, I didn't realise that your file contained many images. In that case
> then I guess this is a bug in Octave. Could you file a bug at
> 'b...@octave.org'? (Sorry to be sending you to a different list, but I'm
> not sure all the right people read this list)
>
> Søren
>
>

I'll do that. Just for the record, I found how to open the other
frames. That can be done with

imread(fileName,frameNumber)

The problem now is that imfinfo does not get the number of frames. In
MatLab, this is how it's supposedly done to open all the frames

fname = 'my_file_with_lots_of_images.tif';
info = imfinfo(fname);
num_images = numel(info);
for k = 1:num_images
    A = imread(fname, k);
    % ... Do something with image A ...
end

With octave, numel or length of (info) is 1.

------------------------------------------------------------------------------
Download Intel&reg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to