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

 
 

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

Submitter:  None
Submitted:  Tue 30 Jun 2020 08:28:00 PM UTC
   
 
Category:  Octave 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 Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

See also bug #50257

Avinoam Kalma <avinoam>
Group 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
  •  

    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 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.13-4448.
    Corresponding source code