How to calculate (relative) complexity of images programmatically? #974
Unanswered
FurkanGozukara
asked this question in
Help
Replies: 1 comment 1 reply
-
How can I get statistics of non transparent pixels?
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have searched the internet thoroughly but not much related questions. Even on stackoverflow there is none
So what I want to achieve is rather hard thing to do
I want to calculate complexity of images
Let me show you several examples from the game I develop https://www.monstermmorpg.com/MonsterDex
A very complex and highly detailed Monster artwork I have e.g.
https://www.monstermmorpg.com/Vesuverex-Monster-Dex-18
And another one which is pretty simplistic
https://www.monstermmorpg.com/Cluckoon-Monster-Dex-152
So I want to calculate complexity of images.
There is an example command given in imagemagick forum like this
magick dragon.png -alpha off -statistic StandardDeviation 5x5 -fill White +opaque Black -format "%[fx:mean]\n
I want to calculate flat colors complexity, many lines complexity, good light complexity and if there are any other complexities all of them. With having all kind of image complexities I will sort my images and decide which one fits best to my aim.
I don't know which complexities are available with Magick.NET but I take all granted.
So why do I need? When I resize them with ImageMagick, I will apply filters based on image's complexity such as
unsharp
optionIt makes huge difference in borders' aliasing
Beta Was this translation helpful? Give feedback.
All reactions