I was playing around with quadtrees in Python. I popped steamed hams into it and this came out. It's an Albany Algorithm.
Пікірлер: 84
@not_estains11 күн бұрын
i like how whenever it gets extremely unstable and starts putting pixels everywhere it resets to a low resolution and repeats the cycle again
@stanbwonderful11 күн бұрын
Each cell splits into 4 when the complexity goes over a certain amount, I just had the threshold changing as the loop runs. It resets after a certain amount. I was really just playing around with it, trying new things :)
@not_estains10 күн бұрын
@@stanbwonderful cool
@not_estains6 күн бұрын
@@stanbwonderful what if you made an entire video like this but the entire screen has the filter and the squares don't have borders
@stanbwonderful6 күн бұрын
@@not_estains Yeah, that's how quadtrees are used in video compression. I added the lines so I could see what was being split and what wasn't, I was having fun. Having it only on half of the screen just made it run faster :)
@74oshua5 күн бұрын
@@stanbwonderfulThat's really interesting, actually. I learned about quadtrees while writing a physics simulation, very cool to learn it has such a widespread application. Thanks for sharing!
@-YELDAH11 күн бұрын
How can i laugh at this? There's no firetruck!
@CasualLemmonJuiceКүн бұрын
Well dam you spoiled it
@wdelgenio3 күн бұрын
Well, I'm from Utica and I've never heard anyone mention the 'Albany Algorithm'.
@NateTheGnat11 күн бұрын
Looks more like a Utica Algorithm to me…. 🤔
@stanbwonderful11 күн бұрын
Oooooh I don't know Utica! :o
@stanbwonderful10 күн бұрын
I'm a dimbulb, took me a while to work out what Utica meant...heard a billion times but never seen it written down :P
@xaigamer31297 күн бұрын
oh not in utica no, it’s an albany algorithm
@shoebill490223 сағат бұрын
@@xaigamer3129I see...
@scroll_serpent20 күн бұрын
new aesthetic just dropped
@Jabberwockybird15 күн бұрын
JPG compression?
@scroll_serpent14 күн бұрын
@@Jabberwockybird ya that's what i meant ya dummy
@francisconikotian23265 күн бұрын
this is how video compression works I imagine
@stanbwonderful5 күн бұрын
That's what I was aiming for :)
@webx1353 күн бұрын
Yes, but also no. But kinda yes.
@NinjaBartenderКүн бұрын
@@stanbwonderful could i have the link to the program please?
@Salutethesun22 күн бұрын
Steqmed hams but Semour used the golden rotation to cook his roast
@Paddylol9 күн бұрын
love how the reset was timed perfectly with "GOOD LORD WHAT IS HAPPENING IN THERE?!"
@coolmugfanx37-019ise9 күн бұрын
''well seymor we are mosaics''
@FezTheSpaceBiker12 күн бұрын
Sega CD compression be like
@stanbwonderful11 күн бұрын
could well be :)
@carlos_did_a_thing8 күн бұрын
now I wanna see steamed hams on the sega cd
@OrangeHarrisonRB38 күн бұрын
The Albany Algorithm is my favorite dance step
@1marcelfilms9 күн бұрын
POV a bird sits on the dish
@BlazeAnimayshunz11 күн бұрын
> Pablo Picasso liked that
@UnaturalShadowsКүн бұрын
the description is what got my like
@GenericSweetener20 күн бұрын
Lovely work, good to see some proper mathematics applied to this. It really legitimizes the field of steaming hams
@rosiepone20 күн бұрын
I wonder how this would look on bad apple
@stanbwonderful19 күн бұрын
There's all kinds of cool stuff you can get running on a bad Apple :D
@RudyHH212 күн бұрын
no
@-YELDAH11 күн бұрын
yes
@asheep77978 күн бұрын
maybe
@FireyDeath46 күн бұрын
sometimes
@calicustКүн бұрын
can we get a version where the bottom left and top right are also quad trees, and all the black lines are hidden? i wanna see the division in real time
@eliburke277920 күн бұрын
i have no idea whats happening but im here for it
@stanbwonderful19 күн бұрын
It's just nerd stuff but I'm having fun :)
@notpot68869 күн бұрын
Matematically correct Steamed Hams
@harrisonmoore38418 күн бұрын
I have no idea what I'm looking at, but I like it
@Stephillpotten5 күн бұрын
I think I know how to use spin now
@chox75179 күн бұрын
This actually reminds me of video compression tbh
@stanbwonderful9 күн бұрын
That's what I was aiming for! :D
@fireball967011 күн бұрын
Getting pop-up windows on bspwm
@underarmbowlingincidentof198120 күн бұрын
beautiful !!
@stanbwonderful20 күн бұрын
Aww thanks :)
@cq.cumber_offishial6 күн бұрын
looking like a jpeg
@LandonEmma8 күн бұрын
I use Python but IDK what that quadtrees module, I gotta do this now
@stanbwonderful7 күн бұрын
There's all kinds of tutorials online, just give it a goog and have fun :)
@solemnwaltz4 күн бұрын
It would look cooler without the borders
@stanbwonderful4 күн бұрын
Yeah, agreed...at the time I was just having fun playing around with the code and wanted to be able to see what it was doing when I changed things :)
@marcelguinhos90224 күн бұрын
Can you actually do compression with this?
@AJLord9 күн бұрын
steamed hams is still alive
@pepperypeppers275520 күн бұрын
Can you apply this effect to the entire frame?
@stanbwonderful20 күн бұрын
Yeah, I was just playing around with this one, running the algorithm on different parts of the screen and changing the variables a bit. I think I've got a few more vids on my channel.
@stanbwonderful20 күн бұрын
kzbin.info/www/bejne/aKDHdH2vmrCGmdU
@stanbwonderful20 күн бұрын
kzbin.info/www/bejne/hXeWoX2YbcZ1i80
@Blaineworld7 күн бұрын
so if i understand correctly, each rectangle can contain either a color or two other rectangles
@stanbwonderful6 күн бұрын
Each cell gets scanned pixel by pixel and a bit of number crunching is done to see how much colour variation there is in that cell. If the colour variation is over a certain threshold it gets split into four smaller cells. If you want to learn more you can give it a search, there's a whole bunch of videos about it here on youtube.
@suhnih407614 күн бұрын
Damn
@TheDZHEX7 күн бұрын
no firetruck... sad
@stanbwonderful5 күн бұрын
I'm sorry, I made a terrible mistake, I just hope you can find a way to forgive me :(
@TORNADOdotjpeg4 күн бұрын
so thats how they make jpeg compression /c:
@dubbynelson8 күн бұрын
with how bloated Python's standard library is there's probably a whole function somewhere in there specifically made to convert an image sequence to quadtrees (and convert it back to video with an audio track via FFMPEG)
@stanbwonderful7 күн бұрын
Where's the fun in that? :P
@lewatoaofair25228 күн бұрын
2:27 Chalmers looks like Alex from A Clockwork Orange.
@joshuabessire91698 күн бұрын
Oh! We are out of Ideas for Steamed Hams! I didn't say stop.
@fromD73 күн бұрын
"Steamed Quad Trees" as if this is some official thing that has any value at all. "Look at me guys I put a bunch of red dots on the screen. This is called dotting now! Oh look I put red dots over Steamed Hams so I'll call the video Steamed Dotting"
@Idran3 күн бұрын
It is, it goes back to the 70s. It's a pretty common algorithm used in things like image compression, collision detection in 2d games, spreadsheet management; it's handy for basically anything that involves working with data arranged in a 2d grid. Like most CS topics, there's a pretty good, well-cited article on Wikipedia about it, but you could also turn up some good info on it just with Google.
@fromD73 күн бұрын
@Idran Wow and look at the result. Really complex and aesthetic the way it creates a bunch of pixelated squares on the screen. How revolutionary.
@jean-philippe726822 күн бұрын
Hi! What can you do with this quad trees?
@stanbwonderful22 күн бұрын
en.wikipedia.org/wiki/Quadtree
@stanbwonderful22 күн бұрын
Quadtrees are used to break up lists of data into smaller bits which are quicker and easier for the computer to deal with. In this case I'm using quadtrees to do video compression, you used to see this a lot on old digital video clips.
@nolansomers21 күн бұрын
@@stanbwonderfulpretty interesting, I had no idea about quad trees till now.
@stanbwonderful20 күн бұрын
@@nolansomers A while ago I was learning about the boids algorithm (videos on my channel), that's when I learned about quadtrees as a way to speed things up but giving the computer less to work out with each step.