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

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

[Octave-bug-tracker] [bug #60322] [octave forge] (image) imresize bicubi


From: Christof Kaufmann
Subject: [Octave-bug-tracker] [bug #60322] [octave forge] (image) imresize bicubic interpolation inaccurate
Date: Sat, 3 Apr 2021 06:49:53 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0

Follow-up Comment #3, bug #60322 (project octave):

OK, I made (besides the loop implementation) two vectorized test
implementations and compared their performance, see attached script. In terms
of Wikipedia
<https://en.wikipedia.org/wiki/Bicubic_interpolation#Bicubic_convolution_algorithm>:
* The first one uses the formula for W(x).
* The second one uses the formula for p(t).

To my surprise the first one is faster. I will do an implementation in imremap
based on the first approach and report back when it's done. Any comments or
feedback that I need to consider?


(file #51180)
    _______________________________________________________

Additional Item Attachment:

File name: bicubic_implementations.m      Size:7 KB
   
<https://file.savannah.gnu.org/file/bicubic_implementations.m?file_id=51180>



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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