Skip to content

How to get per channel luminance data? #1309

Answered by JimBobSquarePants
nixcamic asked this question in Q&A
Discussion options

You must be logged in to vote

That example you've cited from Magick.NET isn't luminance by my reckoning, merely an average of the red component.

Luminance is the weighted sum of linear RGB components.

See #1287 for an example of determining the Luma (weighted sum of gamma compressed RGB components). This is the most common supposition of brightness.

Replies: 2 comments 5 replies

Comment options

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

@nixcamic
Comment options

Comment options

You must be logged in to vote
3 replies
@nixcamic
Comment options

@JimBobSquarePants
Comment options

@nixcamic
Comment options

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