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

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

[Octave-bug-tracker] [bug #44794] image package: imtransform should use


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #44794] image package: imtransform should use 0 instead of NaN for the default extrapolation value
Date: Wed, 15 Apr 2015 10:14:27 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.6.0

Follow-up Comment #10, bug #44794 (project octave):

The test fails in Matlab (R2010b)


>> im = rand (2);
>> tmat = [eye(2); 0 0];
>> T = maketform ('affine', tmat);
>> im2 = imtransform (im, T, 'xdata', [1 3]);
??? Error using ==> imtransform>parse_inputs at 454
If either 'XData' or 'YData' is specified, then both must be specified.

Error in ==> imtransform at 264
args = parse_inputs(varargin{:});


but If I set Ydata, then:


>> im2 = imtransform (im, T, 'xdata', [1 3], 'ydata', [1 3]) 

im2 =

    0.8147    0.1270         0
    0.9058    0.9134         0
         0         0         0

>> im2 = imtransform (im, T, 'xdata', [1 3], 'ydata', [1 2])

im2 =

    0.8147    0.1270         0
    0.9058    0.9134         0



This sounds about right to me but you're more familiar with this function.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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