Skip to content

How to determine an image is dark or not enough brightness? #699

Answered by dlemstra
dev-ptdi asked this question in Help
Discussion options

You must be logged in to vote

You could do that like this:

using (var image = new MagickImage(_filename))
{
    double _calc_brightness = image.Statistics().Composite().Mean;
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dev-ptdi
Comment options

@dev-ptdi
Comment options

@dlemstra
Comment options

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