[Top][All Lists]

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

[Octave-bug-tracker] [bug #44385] image package: simple gamma correction

From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #44385] image package: simple gamma correction with imadjust fails
Date: Sat, 28 Feb 2015 08:23:10 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36

Follow-up Comment #1, bug #44385 (project octave):

Checking with debugger, it fails in line 143

     if( !isvector(in) || length(in)!=2 || !isvector(out) || length(out)!=2 ||
!isscalar(gamma) || (gamma<0) || (gamma==Inf) )

the conditions that are true are


because out is empty.
I think that the solution is to add the lines

  if (isempty (out))
    out=[0;1];               ## default out

after line 114


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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