Comments (7)
Hi @yuan243212790 , actually they are not the same formula.
If you replace C(i), C(j) above with C(u), C(v) then you can understand the code more easily.
from image-transform-dct-and-idct.
can you tell me what the differences?just exchange f(X,Y) and D(X,Y)
from image-transform-dct-and-idct.
@yuan243212790 Maybe explain with the code will be better:
One of the differences you should watch out is the position where calculating C(i) C(j) ( Cu
Cv
in the code).
For DCT, calculate C(i) C(j) right after the first nested for
loop (means before double Σ in the formula).
Image-Transform-DCT-and-IDCT/main.py
Lines 17 to 28 in 31f20bd
For IDCT, the calculation is located after second nested
for
loop (means after double Σ in the formula).Image-Transform-DCT-and-IDCT/main.py
Lines 51 to 67 in 31f20bd
Also be careful with the variables name I used in the nested
for
loop.(In DCT outer nested
for
loop uses u
and v
, inner one uses x
and y
. In IDCT outer nested for
loop uses x
and y
, inner one uses u
and v
)from image-transform-dct-and-idct.
from image-transform-dct-and-idct.
I won't call them exactly the same but yes the basic idea and concept of the both formulas are pretty similar.
For me it's more clear to treat DCT and IDCT as distinct formulas, but now I understand your opinion and the way of thinking.
Regarding DCT and IDCT as the same would be fine, just be careful when implementing with the code :D
from image-transform-dct-and-idct.
from image-transform-dct-and-idct.
Thank you very much!I just want to know the implement in code are the same,Only one is the operation of the original image, and the other is the post-processing of the former
…
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年7月6日(星期三) 晚上6:41 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [denpo1022/Image-Transform-DCT-and-IDCT] dct and idct are the same formula? (Issue #1) I won't call them exactly the same but yes the basic idea and concept of the both formulas are pretty similar. For me it's more clear to treat DCT and IDCT as distinct formulas, but now I understand your opinion and the way of thinking. Regarding DCT and IDCT as the same would be fine, just be careful when implementing with the code :D — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
No problem. You can always launch a new issue whenever you got something want to ask.
from image-transform-dct-and-idct.
Related Issues (1)
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 image-transform-dct-and-idct.