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

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

[Octave-bug-tracker] [bug #54074] image package: phantom makes "function


From: anonymous
Subject: [Octave-bug-tracker] [bug #54074] image package: phantom makes "function parameter persistent"
Date: Wed, 6 Jun 2018 12:28:49 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?54074>

                 Summary: image package: phantom makes "function parameter
persistent"
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 06 Jun 2018 04:28:47 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: Rocket Aaron
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

When use function "phantom" from image-2.6.2, unexpected error was raised:


>> P = phantom();
error: can't make function parameter tmp persistent
error: called from
    phantom>mod_shepp_logan at line 213 column 3
    phantom at line 111 column 13


According to bug53331 <https://savannah.gnu.org/bugs/?53331> , it seems
persistent function parameter was not allowed any more.

Change that function to


function ellipses = mod_shepp_logan ()
  ## Modified version of Shepp & Logan's head phantom, adjusted to improve
  ## contrast.  Taken from Peter Toft PhD thesis, Table B.3
  persistent tmp      = [ 1.0   0.69    0.92     0.0    0.0       0
                         -0.8   0.6624  0.874    0.0   -0.0184    0
                         -0.2   0.11    0.31     0.22   0.0     -18
                         -0.2   0.16    0.41    -0.22   0.0      18
                          0.1   0.21    0.25     0.0    0.35      0
                          0.1   0.046   0.046    0.0    0.1       0
                          0.1   0.046   0.046    0.0   -0.1       0
                          0.1   0.046   0.023   -0.08  -0.605     0
                          0.1   0.023   0.023    0.0   -0.606     0
                          0.1   0.023   0.046    0.06  -0.605     0];
  ellipses = tmp;
endfunction


seems to work, but should it be done just like that?




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54074>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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