bugGNU Octave - Bugs: bug #30365, reading all frames in a...

 
 

bug #30365: reading all frames in a multi-frame image

Submitted by:  Manuchehr Aminian <manuchehr>
Submitted on:  Tue 06 Jul 2010 10:11:35 AM UTC  
 
Category: LibrariesSeverity: 1 - Wish
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: David Bateman <dbateman>
Originator Name: Open/Closed: Closed
Release: 3.3.51Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 08 Jul 2010 06:26:44 PM UTC, comment #1:

The matlab way of doing this would be with a syntax

M = imread('example.GIF','frames','all');

The changeset

http://hg.savannah.gnu.org/hgweb/octave/rev/6035bf68a755

implements this behavior

D.

David Bateman <dbateman>
Project MemberIn charge of this item.
Tue 06 Jul 2010 10:11:35 AM UTC, original submission:

In short: imread returns an error trying to read more frames than an image has. I'd like it to return all frames of an arbitrary multiple-frame image (e.g. .gif, .tiff files) and store them in an array.

Currently, imread() supports reading multiple frames of a .GIF (say) image using an optional second argument. For example, if I know my example.GIF has 16 frames, I can do:

M = imread('example.GIF',7);

to read one frame, or

M = imread('example.GIF',1:16);

to read a range of frames (though this isn't in the documentation for imread() at the moment). However, if I do not know the number of frames in my image, and tried to read the first 17 frames of my image that only has sixteen frames,

M = imread('example.GIF',1:17);

Octave returns an error with no array. This is really the problem. If there is not some way to do this already, the cleanest way I see to fix it is to modify imfinfo to be able to detect the number of frames in an image (if this is something that's in the metadata of GIF files, i'm not sure), then use that to implement a parameter to read all the frames in imread, or if the user is requesting to read frames that don't exist, return what can be read up to that point.

Manuchehr Aminian <manuchehr>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dbateman (Posted a comment)
  • -unavailable- added by manuchehr (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 08 Jul 2010 06:26:44 PM UTCdbatemanSeverity3 - Normal=>1 - Wish
      Item GroupNone=>Feature Request
      StatusNone=>Fixed
      Assigned toNone=>dbateman
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1