Giter VIP home page Giter VIP logo

Comments (5)

fatheral avatar fatheral commented on July 21, 2024 2

Dears spnova12, sliu729, thanks for your interest in my code.

Unfortunately, this code was implemented more than a year ago and can (and in the future definitely will) be not very correct due to the behavior of the new versions of Numpy as well as the new versions on MatLab (e.g. different ways of rounding, image processing etc).

But for this issue I will try to investigate if I have time (maybe the problem is indeed in the upscaling behavior only).

from matlab_imresize.

sliu729 avatar sliu729 commented on July 21, 2024 1

Me too. The latest update results in different result when the target size is larger than the original.

from matlab_imresize.

sliu729 avatar sliu729 commented on July 21, 2024

Dear fatheral,

Thanks for your reply.
Indeed, it will be interesting to have the updated version for python 3 and upscaling test.

Dears spnova12, sliu729, thanks for your interest in my code.

Unfortunately, this code was implemented more than a year ago and can (and in the future definitely will) be not very correct due to the behavior of the new versions of Numpy as well as the new versions on MatLab (e.g. different ways of rounding, image processing etc).

But for this issue I will try to investigate if I have time (maybe the problem is indeed in the upscaling behavior only).

from matlab_imresize.

spnova12 avatar spnova12 commented on July 21, 2024

Dear fatheral,

It would be appreciated if you could make this code more accurate.
In particular, I think this code will be the most important code linking MatLab to Python.

from matlab_imresize.

cjsoft avatar cjsoft commented on July 21, 2024

conversion from RGB to YCbCr may contribute to the difference as well.
I was doing VDSR using Pillow to preprocess my data, and I encountered the same problem.
I used imresize in this repo and Matlab formula to convert from rgb to ycbcr manually, and achieved a very close result to the matlab version.
Or your can just copy this https://blog.csdn.net/Jee_King/article/details/88626917
if you r using cv2, dont forget to convert is to rgb first.

from matlab_imresize.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.