bugGNU Octave - Bugs: bug #58684, [octave forge] (image) imtranslate...

 
 

bug #58684: [octave forge] (image) imtranslate produces nonsense for fractional shifts

Submitted by:  None
Submitted on:  Tue 30 Jun 2020 08:28:00 PM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  other
Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Sat 04 Jul 2020 06:04:25 PM UTC, comment #2: 

See also bug #50257

Avinoam Kalma <avinoam>
Project Member
Thu 02 Jul 2020 08:17:11 PM UTC, comment #1: 

Yes, this seems wrong. Currently it only seems to work for integer shift values.

Also the Octave "imtranslate" function needs to be rewritten in general. Octave has this function since 2002, and in 2014 Matlab introduced a function of the same name as well. These functions are not compatible at all, currently.

Hartmut <hardy>
Tue 30 Jun 2020 08:28:00 PM UTC, original submission:  

octave:1> imtranslate(eye(4),2.5,0)
ans =

   0.25000   0.25000   0.25000   0.25000
   0.25000   0.25000   0.25000   0.25000
   0.25000   0.25000   0.25000   0.25000
   0.25000   0.25000   0.25000   0.25000

octave:2> imtranslate(eye(4),0,2.5)
ans =

   0.25000   0.25000   0.25000   0.25000
   0.25000   0.25000   0.25000   0.25000
   0.25000   0.25000   0.25000   0.25000
   0.25000   0.25000   0.25000   0.25000

octave:3> pkg list
Package Name   | Version | Installation directory
---------------+---------+-----------------------
        image *|  2.12.0 | /opt/local/share/octave/packages/image-2.12.0

Anonymous

 

(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 avinoam (Posted a comment)
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by hardy
  • -email is unavailable- added by hardy
  •  

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

    Only project members can vote.

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-04 avinoam StatusNone => Confirmed
        Release5.2.0 => other
        Operating SystemMac OS => Any
    2020-07-02 hardy Carbon-Copy- => Added avinoam
        Carbon-Copy- => Added carandraug
    2020-06-30 mtmiller Summaryimtranslate produces nonsense for fractional shifts => [octave forge] (image) imtranslate produces nonsense for fractional shifts

    Back to the top


    Powered by Savane 3.5