bugGNU Octave - Bugs: bug #49939, im2frame fails because ind2x is...

 
 

bug #49939: im2frame fails because ind2x is undefined

Submitter:  Avinoam Kalma <avinoam>
Submitted:  Mon 26 Dec 2016 10:10:14 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Avinoam Open/Closed:  * Closed
Release:  * 4.2.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 27 Dec 2016 05:47:26 PM UTC, comment #2: 

I moved the functions to the image directory on the stable branch (http://hg.savannah.gnu.org/hgweb/octave/rev/8defe99c9650).  Ready for test.

Rik <rik5>
Group administrator
Tue 27 Dec 2016 04:38:51 PM UTC, comment #1: 

Why is im2frame in plot/util?  Since it is an image function, shouldn't it be in the image directory?  If that were the case then it would find the private function it needs.  It certainly requires a BIST test as you said.  It also looks like frame2im should be moved.

Rik <rik5>
Group administrator
Mon 26 Dec 2016 10:10:14 PM UTC, original submission:  



>> im2frame ([1 2; 3 4], bone(100))
error: 'ind2x' undefined near line 56 column 14
error: called from
    im2frame at line 56 column 12


ind2x is a private function in image directory, but not in
plot\util, so im2frame don't recognize it.

A test should be added to im2frame, something like:


%!test
%! assert (im2frame ([1 2; 3 4], bone(100)),
%!         struct ("cdata",[1 2; 3 4] , "colormap", bone(100)));


Avinoam Kalma <avinoam>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by avinoam (Submitted the item)
  • -email is unavailable- added by avinoam
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-28 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2016-12-27 rik5 StatusConfirmed Ready For Test
    2016-12-27 rik5 StatusNone Confirmed
    2016-12-26 avinoam Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code