Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Yes, you need recomb:

https://www.libvips.org/API/current/method.Image.recomb.html

https://libvips.github.io/pyvips/vimage.html?#pyvips.Image.recomb

Perhaps:

mono = rgb.recomb([[0.299, 0.587, 0.114]])

The libvips colourspace() conversion is this, but done in linear space, so it's noticeably more accurate. I'd only use this if you want to check results against systems which don't do gamma correction.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@StefanOltmann
Comment options

@jcupitt
Comment options

Answer selected by StefanOltmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants