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

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

[Octave-bug-tracker] [bug #55780] imresize with 'cubic' option is very w


From: anonymous
Subject: [Octave-bug-tracker] [bug #55780] imresize with 'cubic' option is very wrong
Date: Mon, 25 Feb 2019 12:31:08 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

URL:
  <https://savannah.gnu.org/bugs/?55780>

                 Summary: imresize with 'cubic' option is very wrong
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 25 Feb 2019 05:31:06 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Cris Luengo
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

When upscaling an image with imresize and the 'cubic' option, the output looks
almost like a nearest neighbor interpolation, except it has smooth transitions
from patch to patch. Cubic interpolation should yield a very smooth output.

The code below illustrates the problem. This is a small image, 16x16 pixels,
being scaled 16x to 256x256 pixels.


pkg load image
a = imread('https://i.stack.imgur.com/Au3YK.png');
b = imresize(a,16,'cubic');
imshow(b)






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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