I love that you have multiple people replying to you asking for technical details on how you ranked the flag entropy. This is how you know that you are amongst your people here <3
Comment on What did I forget?
residentoflaniakea@discuss.tchncs.de 2 days ago
I see a flag. I like flags. Especially the Japanese flags. I don’t specifically care for Japan, but the flag is one of my favourites. I prefer flags with low entropy: so I wrote a script once that ranks the nations flags by entropy so I could quantify my preference. Thanks for letting me infodump a bit.
AnarchistArtificer@slrpnk.net 2 days ago
FishFace@piefed.social 2 days ago
How are you defining the entropy of a flag?
ArmoredThirteen@lemmy.zip 2 days ago
Subtracting it’s normalized negentropy from 1
gandalf_der_12te@discuss.tchncs.de 1 day ago
i’d define it as size of an svg file that represents the flag, since more complex flag -> more fundamental elements (rectangles, circles) needed -> bigger file size -> more entropy.
Axolotl_cpp@feddit.it 2 days ago
How do you rate entropy? Is the script open source so we can see it?
residentoflaniakea@discuss.tchncs.de 1 day ago
I tried different definitions and settled on spectral entropy. This one uses fourier transform and (I think) this takes the spacial relation of the pixels into account, as opposed to the more common Shannon definition. I’d like to share it but am not sure on how to do that: were I to use GitHub I would doxx myself.
Axolotl_cpp@feddit.it 1 day ago
I see, thank you that’s interessing; There is gitlab as github alternative but i think that making another account is just better then. Another solution is making here a spoiler with the code in it
idealotus@lemmy.world 2 days ago
…and what is the stack ranked result?
residentoflaniakea@discuss.tchncs.de 1 day ago
That really depends on the algorithm used. Ideally it takes colous and spacial information into account. I’ll keep you posted on the ranking.
drosophila@lemmy.blahaj.zone 1 day ago
FishFace@piefed.social 1 day ago
Hmm. It seems weird that any tricolour flags would have different entropies, but I don’t know how you would otherwise do a multichannel entropy.
I was imagining a kolmogorov-esque doodad
residentoflaniakea@discuss.tchncs.de 1 day ago
Yes! And weirder that bicolour banded flags are not consistently on top. I suspect some float errors. I just know that using the typical Shannon style does even worse. I might add some filter that calculates a differential or something.
prole@lemmy.blahaj.zone 2 days ago
What is it about the flag of Japan that you like so much?
residentoflaniakea@discuss.tchncs.de 1 day ago
Simplicity I suppose. Colour combination. In my opinion if i can draw it from memory it’s a good flag.
clay_pidgin@sh.itjust.works 1 day ago
Two colors, with a basic shape centered? I guess it’s ok.
voodooattack@lemmy.world 2 days ago
“Welcome to fun with flags!”
kittenzrulz123@lemmy.dbzer0.com 1 day ago
I also love flags, flags are so beautiful (except the flag of Haiti, fuck you Haiti with your MS paint looking flag)
residentoflaniakea@discuss.tchncs.de 1 day ago
Their previous version was indeed without the coat of arms. Much cooler I think. During that time the Liechtenstein flag was identical, but they (Liechtenstein) changed it upon discovery.
CelloMike@lemmy.world 2 days ago
Well you gotta share that ranking now…
ByteJunk@lemmy.world 2 days ago
And that script. I’m curious how you implemented it.
residentoflaniakea@discuss.tchncs.de 1 day ago
I owe it to the community. Since I don’t have it anymore I am coding it up again. Allow me some time - it’s weekend and I have family to look after.