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.
Edit: Due to people aski g for it: here is the top ten of my ranking:
Nations' flag entropy ranking (n=208). Image source: Wikimedia. 0 white_field -1.439759075204976e-10 1 Indonesia 3.3274441922278752 2 Germany 3.391689777286108 3 South_Ossetia 3.8174437373506778 4 Monaco 3.9718936201427066 5 Poland 3.9719290780440133 6 Austria 4.372592975412404 7 Ukraine 4.405280849871184 8 Hungary 4.4465472496385985 9 Albania 4.6134257669087395 10 Mauritius 4.707109405551959 11 Luxembourg 4.721346585737304Here’s how I defined the entropy value for each flag:
def color_weighted_spectral_entropy(image): b_channel, g_channel, r_channel = cv2.split(image) # Calculate spectral entropy for each channel def channel_spectral_entropy(channel): f_transform = np.fft.fft2(channel) f_shifted = np.fft.fftshift(f_transform) magnitude_spectrum = np.abs(f_shifted) if np.sum(magnitude_spectrum) > 0: normalized = magnitude_spectrum / np.sum(magnitude_spectrum) else: normalized = magnitude_spectrum # Entropy calculation with color channel weighting epsilon = 1e-10 entropy = -np.sum(normalized * np.log2(normalized + epsilon)) return entropy weighted_entropy = ( 0.333 * channel_spectral_entropy(b_channel) + 0.333 * channel_spectral_entropy(g_channel) + 0.333 * channel_spectral_entropy(r_channel) ) return float(weighted_entropy)“White_field” is just an array that holds zeroes. I use this as a sanity check. Code is on github. I can send DM to whomever is interested. I guess it can also be searched for.
Well you gotta share that ranking now…
And that script. I’m curious how you implemented it.
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.
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
How do you rate entropy? Is the script open source so we can see it?
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.
I see, thank you that’s interessing;
Btw there is gitlab as github alternative but i think that making another gh account is just better then. Another solution is making here a spoiler with the code in it
…and what is the stack ranked result?
That really depends on the algorithm used. Ideally it takes colous and spacial information into account. I’ll keep you posted on the ranking.
What is it about the flag of Japan that you like so much?
Simplicity I suppose. Colour combination. In my opinion if i can draw it from memory it’s a good flag.
Two colors, with a basic shape centered? I guess it’s ok.
I like Kazakhstan’s flag because I think its a nice combination of colors:

Its not very low entropy though, at least not compared to ones like Germany’s or Ukraine’s.
“Welcome to fun with flags!”
I also love flags, flags are so beautiful (except the flag of Haiti, fuck you Haiti with your MS paint looking flag)
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.
What do the cat ears have to do with Maxwell’s equations
No idea. Cat ears seem to be more popular with computer science people, should’ve put them on the Rust logo instead.
Couldn’t nicely put pngs with transparent backgrounds in there for these two, so they both got white backgrounds and put next to each other.
Why not put it in the JP flag?
My interpretation is noise sensitivity. Especially when thinking.
Stupidly large murika style cars are gonna be a no from me dawg
Look at that thing, the bonnet comes up to this stomach!
Not autism approved nu-uh
Wow, the precision with which this struck me is concerning. I’m really, incredibly autistic at all times aren’t I?
Is this how I find out I’m autistic??
This is how you find out you’re cool 😎
Cool and autistic 😎
I feel personally attacked, how did you know my entire personality
black people are popular with the autistics?
I have met far more certifiably autistic black anime fans than white ones.
If there’s ever a race war, I’m 100% team black, if they’ll have me.
Why is Lain so popular these days? I still have my rips from 20 years ago on an old hard drive.
I just don’t seem to understand.
A shame, you seemed an honest man.
The opening song Duvet became popular on tiktok and a new generation got to know Lain thanks to that
The kids find her “gen z stare” relatable
Conlangs!!
i see linux,minecraft,japan(i just like the games that originate from this country mostly),thinkpad,C,Rust
wait…
I think I’m autistic.TIL I am, apparently, as well.
No dinosaurs‽‽ XD
No space as well, or dinosaurs in space?

Either and both! 🤓
Fixed 👍
Cool! XD
Based on posts around here, the Roman Empire.
i’m not a fan of it at all, it was a country of rapists the way they invaded their neighboring countries.
haterner miku!!!

*edit, since OP is adding things in I removed the white background. Also for OP, you can use https://www.remove.bg/upload for that, you don’t get the full quality image but for this use case it’s good enough
Thanks Quinny, but uploading to lemmy seems to automatically convert to jpeg.
womp womp 😢
Why do autistic people love pie charts with red circles?
正直、全くわかない
The 3rd character looks like an arrow so I can only assume shots have been fired.
No, no, arrow is obviously 矢, silly! 全 is all :D
Me except im not that intrested in Japan (I love Vietnam tho), im not that intrested in Minecraft (ive just played it for too long), not that intrested in Pokémon (never got into it). You forgot a few things tho
- Programming socks
- Star Trek
- :3
- Mechanical keyboards
- Walkable cities (and a general obsession with people focused city planning)
Socks as in Berkeley Sockets or socks with programming Lingo on them?
Neither, thigh highs :3















