Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you transform the images from BGR to YCbCr color space? #37

Open
majian-stu opened this issue Nov 29, 2020 · 2 comments
Open

Do you transform the images from BGR to YCbCr color space? #37

majian-stu opened this issue Nov 29, 2020 · 2 comments

Comments

@majian-stu
Copy link

Hi! Do you transform the images from BGR to YCbCr color space before converting them to the frequency domain?
As you have mentioned in your paper, “Then images are transformed to the YCbCr color space and converted to the frequency domain (DCT transform in Figure 2)."
But I cannot find any operation that transforms the image from BGR to YCbCr in your open-source code, and you feed the BGR images to the function "transform_dct" directly.
I'm not sure if I missed any details. I hope you can help me.

@jiaozizhao
Copy link

Same question. I found there is a parameter called 'backend' in class DatasetFolderDCT, which is used to control whether to load YCrCb image. But I noted the parameter is set to default as 'opencv', which means load BGR image. Then I can not find where BGR image is converted to YCrCb.
Could you please give some details? Thanks very much.

@J-JunChen
Copy link

You can find the DCT processing in the TransformUpscaledDCT(object) class in cvtransforms.py file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants