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: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #44794] image package: imtransform should use 0 instead of NaN for the default extrapolation value
Date: Fri, 10 Apr 2015 10:43:57 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0

Update of bug #44794 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #3:

The process of transforming the image is as follows:
* Define a transform: in this example it is defined by the user who provides a
direct transform (here a pure rotation matrix).
* infer the reverse transform.
* infer the size of the output image using the direct transform: here rotating
the image by 45deg makes the output image necessarily larger than the input
one (widthout = ceil (witdthin * sqrt (2))). 
* For each pixel in the output space, use the reverse transform to infer the
corresponding coordinates in the input space.
* use interp2 in the input space to find the  interpolated value of the pixel
in the output space.

When a pixel in the output space is not defined in the input space, its value
(gray level here) will be replaced by a fixed EXTRAP value (see "help
interp2"). Solving this bug is just a matter of changing the default value of
the "fillvalue" property in imtransform.m. 

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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