satoshiiizuka / siggraph2016_colorization

Code for the paper 'Let there be Color!: Joint End-to-end Learning of Global and Local Image Priors for Automatic Image Colorization with Simultaneous Classification'.
http://hi.cs.waseda.ac.jp/~iizuka/projects/colorization/
Other
2.16k stars 302 forks source link

chrominance map #9

Closed lulu1315 closed 8 years ago

lulu1315 commented 8 years ago

hello and thanks for all that. "Note that you can process a small imageto obtain the chrominance map and then rescale it and combine it with the original grayscale image for higher quality." how would you do that ? thanks in advance luc

lulu1315 commented 8 years ago

ok sorry I've get it.RGB to HSV gives me what I need.

geppeinserra commented 7 years ago

I have same problem. How do you obtain chrominance map of image? And how (using wich application...) can you rescale and combine it? Thanks.

lulu1315 commented 7 years ago

I use ImageMagick ... something like this convert imagein.png -colorspace YUV -separate imageyuv%d.png you will have 3 images then resize imageyuv%d.png and recombine convert image_yuv_1.png image_yuv_2.png image_yuv_3.png -set colorspace YUV -combine -colorspace sRGB final.png

http://www.imagemagick.org/script/index.php

geppeinserra commented 7 years ago

Thank you for your precious tip. I have another question: had I to resize all the three images that I obtain with string “convert imagein.png -colorspace YUV -separate imageyuv%d.png”? How do you make resize operation? Thank you. You are very precious for me. Geppe Inserra

lulu1315 commented 7 years ago

imagemagick can resize : http://www.imagemagick.org/Usage/resize/

geppeinserra commented 7 years ago

Many thanks! Then, i have to resize with imagemagick the three images (image_yuv_0.png, image_yuv_1.png, image_yuv_2.png) that i obtain with your initial string. Is that so?

Il giorno 15 giu 2017, alle ore 11:00, luc notifications@github.com ha scritto:

imagemagick can resize : http://www.imagemagick.org/Usage/resize/ http://www.imagemagick.org/Usage/resize/ — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/satoshiiizuka/siggraph2016_colorization/issues/9#issuecomment-308672613, or mute the thread https://github.com/notifications/unsubscribe-auth/AbyrPd3X991d4WjJYZ_XeBp_T8WA9YOgks5sEPLFgaJpZM4IpGpn.

geppeinserra commented 7 years ago

Excuse me. I resized the three images, the i recombine… but final image loses resolution…. Sigh.

Il giorno 15 giu 2017, alle ore 11:00, luc notifications@github.com ha scritto:

imagemagick can resize : http://www.imagemagick.org/Usage/resize/ http://www.imagemagick.org/Usage/resize/ — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/satoshiiizuka/siggraph2016_colorization/issues/9#issuecomment-308672613, or mute the thread https://github.com/notifications/unsubscribe-auth/AbyrPd3X991d4WjJYZ_XeBp_T8WA9YOgks5sEPLFgaJpZM4IpGpn.

lulu1315 commented 7 years ago

the first one (luminance) should come from your original image ... you rescale the u and v and then recombine

geppeinserra commented 7 years ago

Thank you very muck. Now it works!!!

Il giorno 15 giu 2017, alle ore 12:19, luc notifications@github.com ha scritto:

the first one (luminance) should come from your original image ... you rescale the u and v and then recombine

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/satoshiiizuka/siggraph2016_colorization/issues/9#issuecomment-308691022, or mute the thread https://github.com/notifications/unsubscribe-auth/AbyrPYaNsvYjNkXCpid2S1TUgZ43a_FQks5sEQU9gaJpZM4IpGpn.