octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62520] [octave forge] (image) imrotate: roata


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #62520] [octave forge] (image) imrotate: roatation angle should not be NaN
Date: Wed, 25 May 2022 00:09:25 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62520>

                 Summary: [octave forge] (image)  imrotate: roatation angle
should not be NaN
                 Project: GNU Octave
            Submitted by: avinoam
            Submitted on: UTC 04:09:23 2022 מאי 25 ד'
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: Marie
        Originator Email: 
             Open/Closed: Open
                 Release: other
         Discussion Lock: Any
        Operating System: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: UTC 04:09:23 2022 מאי 25 ד' By: Avinoam Kalma <avinoam>
I received this report by E-mail:

The bug is in imrotate.m . 
In line 65 it is tested if thetaDeg is a scalar. However if thetaDeg = Nan it
should also return an error. This is not the case as NaN also returns a scalar
- https://octave.sourceforge.io/octave/function/NaN.html . 
Therefore it should also be tested if ThetaDeg is a Nan. So I think it would
be helpful to just add another 


elseif (isnan(thetaDeg)
error("imrotate: THETA is NaN");


or something similar. 
I was rotating an image repeatedly and calculating the thetaDeg in the
process. I had to work my way through from imremap.m which is two levels
deeper into the code, where it then threw me an error.









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62520>

_______________________________________________
נשלחה הודעה דרך Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]