Comments (5)
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.
Me too. The latest update results in different result when the target size is larger than the original.
from matlab_imresize.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matlab_imresize.