This is the Kuwahara Filter

2022 ж. 3 Қар.
374 888 Рет қаралды

30 years ago a man attempted to denoise medical imagery and unknowingly set off a chain reaction of research developments leading to a modern day post processing effect that transforms images into paintings, but how did he do it?
Download my GShade shader pack!
github.com/GarrettGunnell/Ace...
Patreon: / acerola_t
Twitter: / acerola_t
Twitch: / acerola_t
Code: github.com/GarrettGunnell/Pos...
Join My Discord Server! / discord
References:
Anisotropic Kuwahara Filtering on the GPU - GPU Pro
www.umsl.edu/~kangh/Papers/kan...
Music:
Joy - Persona 3
Tranquility - Persona 3
Crisis - Persona 3
During The Test - Persona 3
Afternoon Break - Persona 3
This Mysterious Feeling - Persona 3
Muscle Blues - Persona 4
Like A Dream Come True - Persona 4
Dead End Chaos Theatre - Earthbound
Climax Return - Danganronpa
Gold Falls Casino - HuniePop
Lucky Day - Jingle Punks
arrow in thumbnail drawn by thlurp
Thanks for watching!
This video is dedicated to my friend, Alotryx.
#acerola #graphics #gamedev #unity3d #graphics #shaders

Пікірлер
  • If you added the noise in photoshop just press ctrl-z 4Head

    @moth.monster@moth.monster Жыл бұрын
    • shit i didnt think of that

      @frog-hf4po@frog-hf4po Жыл бұрын
    • Generalized Ctrl-Z Denoise

      @deniszdorovtsov8195@deniszdorovtsov8195 Жыл бұрын
    • what if i had already saved the noise in photoshop?

      @alex.g7317@alex.g7317 Жыл бұрын
    • @@alex.g7317 Idk don't do that next time

      @moth.monster@moth.monster Жыл бұрын
    • @@moth.monster what if i do?

      @alex.g7317@alex.g7317 Жыл бұрын
  • I just spent 40$ for a post-processing stack specifically for this filter, you come out a week later and release it for free, you're a madman

    @quentinchoumont3437@quentinchoumont3437 Жыл бұрын
    • I technically released it like a month ago but I only posted about it on twitter, sorry about the trouble! I hope the asset you purchased is much more usable than my stuff.

      @Acerola_t@Acerola_t Жыл бұрын
    • What was it called?

      @Crux_Riajuu@Crux_Riajuu Жыл бұрын
    • @@Crux_Riajuu Stagart Creations SC Post effects

      @quentinchoumont3437@quentinchoumont3437 Жыл бұрын
    • And this is probably better than what you paid for.

      @orbatos@orbatos Жыл бұрын
    • @@quentinchoumont3437 That one can do way more than just that one filter. So I guess the purchase was worth it (one of the demos looks like Antichamber which is great)

      @ThePandaAgenda@ThePandaAgenda Жыл бұрын
  • I wasn't super impressed by the effect until I saw the HUGE improvement it makes to FFXIV... it looks like an entirely new game and it's gorgeous. I love it.

    @jabadahut50@jabadahut50 Жыл бұрын
    • Is there a way to use the effect in Godot?

      @iluvpandas2755@iluvpandas27557 ай бұрын
    • @@iluvpandas2755 yeah you'd just have to write the shader for it into godots shader pipeline

      @jabadahut50@jabadahut507 ай бұрын
    • I will try.

      @iluvpandas2755@iluvpandas27557 ай бұрын
  • Never stop making these videos. Your method of teaching is both fun(ny) and informative. Love it!

    @InkDrop.@InkDrop. Жыл бұрын
    • nice pfp

      @Stowy@Stowy Жыл бұрын
    • @@Stowy ayyy

      @InkDrop.@InkDrop. Жыл бұрын
    • yez!

      @harriehausenman8623@harriehausenman8623 Жыл бұрын
    • I wish I could see it on my phone, all my phone lets me watch at is 720p and the bitrate makes it almost unnoticeably different

      @aiellamori@aiellamori5 ай бұрын
  • I will say that the original Kuwahara filter did a great job for what it was meant to do. Also, as an artist, I use this filter (or it's equivalent) all the time when searching for common colors on an image for either reference drawing or when I'm trying to achieve a 'style'. Great video, just a little offended that something like that would be considered 'not good' xD

    @thediktatortot9645@thediktatortot9645 Жыл бұрын
    • I did say they all have their aesthetic appeal! I use the basic kuwahara filter a lot as a pre pass to other effects since it simplifies more than the anisotropic filter does and is pretty cheap performance wise.

      @Acerola_t@Acerola_t Жыл бұрын
    • @@Acerola_t Lol Just giving you a hard time. I enjoyed the video!

      @thediktatortot9645@thediktatortot9645 Жыл бұрын
  • As a Engineering major who is an artist now, this was like a content made for me.

    @KoongYe@KoongYe Жыл бұрын
    • As a person who holds math and physics degrees and now transcribes music into braille for blind children, this content has absolutely nothing to do with my life path or personal interests. (But dang it I am LOVING it and I'm now binging all of his programs. How does he make this stuff so dang interesting?!?)

      @kellybraille@kellybraille Жыл бұрын
    • I'm kinda in the oposite situation. I'm a design student going down a coding rabbit hole.

      @DerMBen@DerMBen Жыл бұрын
    • As an artist who loved the Emperor Wang Gun drama, I love your username! 😁

      @charliehammer8780@charliehammer87805 ай бұрын
  • One of the difficult things in removing noise is deciding which fine objects need to be preserved, like eyes, and which you might want to leave out, like moles.

    @glenneric1@glenneric1 Жыл бұрын
    • Moles are not noise. They are facial(or elsewhere on the skin) features exactly as eyes are. Removing those is completely different thing that denoising. Maybe you expect denoise filter to make the boobs bigger, tummy smaller and apply better makeup too?

      @anteshell@anteshell5 ай бұрын
    • @@anteshell that's not op's point. would you rather have eye-less face instead of mole-less face?

      @MarcelAndrian@MarcelAndrian5 ай бұрын
    • @@MarcelAndrian What I want my face to look like has nothing to do on using completely wrong tool on the wrong task. But also, I am very content on how I look and I don't have to resort on superficial vanity and lies to hide what ever I might have on my face with faux images of myself. I'm sorry that you don't have such a healthy self-esteem.

      @anteshell@anteshell5 ай бұрын
    • @@anteshell You're fighting the entire cosmetics industry on this one.

      @glenneric1@glenneric15 ай бұрын
    • @@glenneric1 no, I'm not. To be successful in cosmetic industry, it requires a bit more than being dumb enough to use denoiser for moles. Try again.

      @anteshell@anteshell5 ай бұрын
  • If you used the Kuwahara filter on level geometry and toon shading on objects, you would have a pretty good emulation of cel animation.

    @samfromcadott@samfromcadott Жыл бұрын
  • Hi Acerola, You mentioned towards the end looking for the Manifold Garden presentation, and I've managed to find one that does outline parts of their anti aliasing techniques. I can't post the link without KZhead hiding the comment, so the title of the video is "(SIGGRAPH 2020) That's a wrap: a Manifold Garden Rendering Retrospective". Hope this is close to what you're looking for.

    @Revoker1221@Revoker1221 Жыл бұрын
  • I really appreciate all of your videos. You are great at breaking down difficult to understand problems and have given me a lot more incite on how a lot of visual effects are done. I also enjoy your very dry tone and humor. I am glad to see your channel growing! Keep up the great work!

    @SamHartwell420@SamHartwell420 Жыл бұрын
  • I don't even work with computer graphics, but your content is fantastic. So nice to watch the way you evolved the development of the methods and made it enjoyable. A natural gift for teaching.

    @33gbm@33gbm Жыл бұрын
  • You are truly one of the best at explaining complex matter while being careful to details

    @stefanomoscatelli4138@stefanomoscatelli4138 Жыл бұрын
  • You're not alone in wondering how manifold garden did edge detection. I worked on a (now scrapped) project with a similar aesthetic and could never figure it out.

    @Julian_H@Julian_H Жыл бұрын
    • See one of the top comments for the presentation video!

      @SjorsHoukes@SjorsHoukes Жыл бұрын
    • @@SjorsHoukes He's hearted a lot of comments and it is harder to find now but the comment said to search for "(SIGGRAPH 2020) That's a wrap: a Manifold Garden Rendering Retrospective "

      @LanceThumping@LanceThumping8 ай бұрын
    • I've been trying to get rid of the aliasing in my edge-detection shader for years and I'm still unable to, I thought it was something easy to fix but that I couldn't find for some reason. 😭

      @sqrt2295@sqrt22957 ай бұрын
  • Absolutely awesome video, and thank you so much for sharing your shaderwork publicly!

    @redotix9952@redotix9952 Жыл бұрын
  • 8:52 out of all song choices you chose one that makes me shiver thinking about that phase of my life

    @Isleuntothyself_@Isleuntothyself_ Жыл бұрын
    • Haha same. As much as miss that soundtrack dear god am I glad I’m not listening to it lmao

      @LoveisStoredInTheLain@LoveisStoredInTheLain8 ай бұрын
  • love the editing on this one. great job

    @nix3l_@nix3l_ Жыл бұрын
  • this is amazing. i was struggling to reconcile what i was going to do for the style i wanted to do for a game project im working on and i think this basically answers all my questions. all your videos have been super cool and helpful for me trying to figure stuff out.

    @MaraJinksblade@MaraJinksblade Жыл бұрын
  • Honestly I found the style of these annoying at first but it really grew on me, especially after it becoming abundantly clear that you really know what you’re talking about. Brilliant work, super looking forward to more!

    @xanderlinhares@xanderlinhares Жыл бұрын
  • absoultely incredible. your depth of knowledge on this subject is deeply fascinating

    @FROZENbender@FROZENbender11 ай бұрын
  • Wow, this is just incredible! I guess this is the kind of effect that were used in the game Last Day Of June and gave it that dreamy aesthetic.

    @KrisDesChacals@KrisDesChacals Жыл бұрын
  • This is one of the best and most intuitive videos I've seen on youtube about image processing. You made it very interesting and not boring!!

    @helioom@helioom17 сағат бұрын
  • I love the simple but entertaining editing! Good stuff

    @randomess61@randomess61 Жыл бұрын
  • A random KZhead suggestion became an instant sub - thoroughly informative and immensely entertaining all within my attention span! Thank you!

    @zloboslav_@zloboslav_ Жыл бұрын
  • wonderful video, the final shader gives insanely cool looking result! The kuwahara + pixel art tests are so tasty!

    @AlexStrook@AlexStrook Жыл бұрын
  • somehow you ended up in my feed, Im glad, I learned something today and enjoyed myself while doing it, you my friend have earned another subscriber!

    @SaintSkeleton@SaintSkeleton Жыл бұрын
  • Oh cool! I've been taking an imaging and multimedia class that goes over a bit of stuff like this. I really liked the anisotropic kuwahara filter + dithering, especially the one of the sailor at 14:26.

    @bogward4330@bogward4330 Жыл бұрын
  • I love these videos! Love how you balance information while still being entertaining! Keep it up!

    @outoftheshell@outoftheshell Жыл бұрын
  • I'm not gonna lie I've been binging all of Acerola's videos because they are so interesting to me as a budding computer science major. I'm not sure if I'm going to end up in a similar field working with graphics like this, but I find it so much fun to learn about all these difference effects and shaders you can add onto images and games, and the math and code behind them. I wish more people knew about this channel!

    @Squish_Squash@Squish_Squash8 ай бұрын
  • These are such good videos, I'm really glad to see your channel growing!

    @lukedare-white3131@lukedare-white3131 Жыл бұрын
  • This is your first video I've seen, I'm very impressed by your content. Subbed!

    @anders9958@anders9958 Жыл бұрын
  • Great video Acerola. I had implemented a version of the Kuwahara filter in the past, but I had no idea about the history behind it, so thanks for enlightening me :)

    @Monad_of_Eirye@Monad_of_Eirye Жыл бұрын
    • Thanks Monad :)

      @Acerola_t@Acerola_t Жыл бұрын
  • These are probably my favourite videos on YT at the moment, keep it up!

    @kylebanks@kylebanks Жыл бұрын
  • Can’r wait to watch this later tonight! Im in an in-person meeting right now.

    @oltimeri8256@oltimeri8256 Жыл бұрын
  • can I just say I really really really enjoy these videos. It's one of the most youtube series at the moment. I was always curious about post processing effects and adding it in pixel art in particular. Some of my favorite videos on yt

    @microdavid7098@microdavid7098 Жыл бұрын
    • been looking for techniques of blurring and stylizing pixel art without succeeding. Now this will definitely be of a lot of help

      @microdavid7098@microdavid7098 Жыл бұрын
  • Loved all the niche references throughout this video, particularly the extensive use of Persona OST for the music and the Monogatari style visuals like the quick frames with either walls of text or "black scenes".

    @JohnyK07@JohnyK07 Жыл бұрын
  • Love the Danganronpa music when explaining something, also I am so glad you are starting to pick up subscribers wise. You deserve it.

    @Pipubbles@Pipubbles Жыл бұрын
  • wow finally a very informative, detailed and funny video on shaders. thank you!

    @zuzej@zuzej Жыл бұрын
  • really cool video, I've only heard about it in passing but always wanted to get more indepth with it

    @erichbauer3991@erichbauer3991 Жыл бұрын
  • LETSS GOOO! I can tell you out a lot of work in this video. Keep it up ☺️!

    @benjaminha9031@benjaminha9031 Жыл бұрын
  • Man, just found out your channel. Absolutely amazing, I'm in awe!

    @Voshchronos@Voshchronos Жыл бұрын
  • such a great video, cant wait to see what it looks like when applied to textures first! edit: im watching it again after watching your final fantasy video because its just that good

    @roborogue_@roborogue_ Жыл бұрын
  • I've been waiting since the announcement for the video, loved it.

    @jasonrodriguez1331@jasonrodriguez1331 Жыл бұрын
  • I'm glad you take as much time as you need to make quality videos.

    @Nosferatu-_-@Nosferatu-_- Жыл бұрын
  • Nice! Back in 2019 and with no previous knowledge of denoising algorithms I wrote a filter with a similar, yet even less organic look than the box kernel Kuwahara one.

    @pomponi0@pomponi0 Жыл бұрын
  • I am going to steal "I hope your milk is one day expired" the next time I need a sort-of-but-not-too-threatening insult. Thank you. (Also great video as usual.)

    @kuroi_iruka@kuroi_iruka Жыл бұрын
  • We appreciate the work you put into these videos. love the balance of the explanation.

    @CausticCatastrophe@CausticCatastrophe Жыл бұрын
  • i love this channel! glad to see that its still active!

    @NikZapp@NikZapp Жыл бұрын
  • Lets goooo it's another Acerola video, always love how interesting these are

    @TheJackpotgamer@TheJackpotgamer Жыл бұрын
  • As someone who produces realistic images from blender but wants to simplify detail as an artist, this video was relevant. I also play ffxiv and so was nice. I also make videos and jfc how are you so good. Editing and pacing were great. Hope this blows up big!

    @MarkDavidTeo@MarkDavidTeo Жыл бұрын
  • Funny, I wrote up a kuwahara filter in shadertoy right around when you released this. Yet if I had seen your video would have implemented paparis color weighting math. The thing I like about kuwahara is that you can get edge values relatively cheep when running the sampling and finding the color deviation. Even tangent values of those edges, for things like embossing effects. All in a single pass through the kernals This is still one if my favorite styles that is basically free in how its set up for everything it can do. The inate style of the noise reduction, so purrrddy!

    @TrancorWD@TrancorWD8 ай бұрын
  • Excellent excellent video. Learning a ton from this as a young tech artist on the job. Also desperately trying to optimize a custom postprocessing effect that costs 5ms at the moment…Relating hard to both of your freeze frame rants right now.

    @xelshade@xelshade Жыл бұрын
    • That's exciting! Unfortunately I wont be able to do post processing work at my job for a looooong time. Hope you can get it faster

      @Acerola_t@Acerola_t Жыл бұрын
  • your vids are pieces of art, thank you

    @csxcatgirl9896@csxcatgirl9896 Жыл бұрын
  • Only watched the first 14 seconds but you're right, telling computers what to do just makes up for our own inability to do billions of calculations per second, glad to see someone understand what programming is all about.

    @robertviragh6527@robertviragh65274 ай бұрын
  • hey! You did great work/compilation of ideas, and thanks for sharing them for free!

    @bzikarius@bzikarius6 ай бұрын
  • i love the rant about branching at around 8:45. acerola, you are the best

    @wizard_fu@wizard_fu5 ай бұрын
  • Such an underrated channel, exceptional in so many areas and doing it alone (i assume).

    @AzoreanProud@AzoreanProud Жыл бұрын
    • yeah it's all me I wish I could get help with editing or script writing but that would require knowledge of the content which is niche enough as it is

      @Acerola_t@Acerola_t Жыл бұрын
  • Thank you a lot king, you've made it quite clear and I just implemented the Kuwahara Filter on my mountains in Houdini thanks to you. Next step would be to make a 3D Kernel out of it.

    @nathanlebon5813@nathanlebon581311 ай бұрын
  • Amazing video!! And absolutely rocking the omocat shirt 😌👌

    @cansutamer2009@cansutamer2009 Жыл бұрын
  • Keep it going. This could be a new great courses class!

    @Xynteract@Xynteract8 ай бұрын
  • Damn, I love these videos!

    @lowresbones@lowresbones Жыл бұрын
  • 7:38 and now I have a song I had forgotten about stuck in my head all day. Thanks I guess.

    @kaustik185@kaustik185 Жыл бұрын
  • I’ve learned everything I know about game development from Aceroller! My FPS Voxel MMO is gonna be awesome when I finish his tutorial series

    @McBreadbox@McBreadbox Жыл бұрын
  • killer video and use of the filter - thanks

    @slein_grobaaf@slein_grobaaf11 ай бұрын
  • Fascinating! Great stuff!

    @RCrosbyLyles@RCrosbyLyles Жыл бұрын
  • i wish i had the bravery in your delivery, thankss good stuff

    @jimmy9013@jimmy9013 Жыл бұрын
    • Carcass interview - Bill astonishingly good, bastards :)

      @jimmy9013@jimmy9013 Жыл бұрын
  • I love the kurahara filter’s look. It has a good detail retention.

    @iluvpandas2755@iluvpandas27557 ай бұрын
    • I actually perfer it over the generalized kurahara.

      @iluvpandas2755@iluvpandas27557 ай бұрын
  • That was great storytelling. Thanks!

    @ComplejamenteSimple@ComplejamenteSimple Жыл бұрын
  • Great video as always.

    @technoo4891@technoo4891 Жыл бұрын
  • This channel is such an underrated gem.

    @DragonWistArt@DragonWistArt Жыл бұрын
  • best channel i've subbed to in a long time

    @dorktales254@dorktales254 Жыл бұрын
  • As someone getting into painting, the Basic Kurosawa filter feels like it'd be good enough by itself. Like, you get rid of some detail off of your reference and then use that easier image to do a painting. But still, the generalized and anisotropic versions look awesome.

    @theveryloosegoose@theveryloosegoose9 ай бұрын
  • Graphics algorithms, a hobby of mine. Love your explanations.

    @simonstrandgaard5503@simonstrandgaard5503 Жыл бұрын
  • Great video. Amazing image effects.

    @chunkyquail@chunkyquail Жыл бұрын
  • You did such a good job on this video

    @mooncatcher_@mooncatcher_ Жыл бұрын
  • Actually I've been looking specifically for this, this is extremely helpful, thank you. 👁👄👁

    @binkbonkbones3402@binkbonkbones3402 Жыл бұрын
  • This is well presented, educational, and helpful.

    @TheMartiansLoveKuato@TheMartiansLoveKuato5 ай бұрын
  • Aaaa that's so cool! The anisotropic filter is such a crazy idea I bet you could make some really wild stuff with anisotropic kernels. I feel like in another life I would have loved being a graphics programmer but alas it's just a hobby.

    @lydianlights@lydianlights Жыл бұрын
  • You are doing spectacular job.

    @FatihTurkerFatih@FatihTurkerFatih Жыл бұрын
  • My computer works again, so now I can enjoy your videos again! c: I hope I can put use to some of them!

    @Srcsqwrn@Srcsqwrn3 ай бұрын
  • you are seriously good at explaining things.

    @shi76b@shi76b Жыл бұрын
  • This is brilliant and inspiring! Thanks for breaking things down so well!

    @_jonathancollins@_jonathancollins Жыл бұрын
  • i like your shirt. that pretty boy comic always was such a heartwarmer

    @heindijs@heindijsАй бұрын
  • Since KZhead doesn't like me commenting the link to the Manifold Garden presentation you mentioned, whose researching had cost me hours and was a huge pain to find, I just want to say that I love your videos and want to send you the link to the presentation.

    @paer124@paer124 Жыл бұрын
    • Some others have sent me the link already (including the actual graphics guy for manifold garden), but thank you so much for your time and effort.

      @Acerola_t@Acerola_t Жыл бұрын
  • Not a patreon yet, but I liked and subscribed. And now I wrote a comment. Great stuff!

    @madcow5833@madcow5833 Жыл бұрын
  • Yay, you're back!

    @th3_sull1van@th3_sull1van Жыл бұрын
  • Tbh I'm much more interested in the texture space version of the effect! It's cool in real time, but you give up a lot of control as an artist, and it's never fun to fight against your art pipeline to make things look good. Excited for the next video!

    @morganlak4337@morganlak4337 Жыл бұрын
  • basic and generalized kuwahara is actually way closer to many modern oil painting styles imo. anisotropic looks like renaissance style oil paintings, paintings that take very long and try to be as close to a real picture as possible, the other two are far more stylized and actually in my opinion way more recognizable as painterly

    @the-white-eye@the-white-eye Жыл бұрын
  • Man, amazingly chaotic music choices I love it

    @RedHedDes@RedHedDes Жыл бұрын
  • These videos are like asmr, cheers

    @jairorodriguezblanco615@jairorodriguezblanco615 Жыл бұрын
  • what a random pleasent find. great stuff

    @LE0NSKA@LE0NSKA5 ай бұрын
  • Wow using the eigen vectors of the structure tensor is actually really smart… That’s really cool!

    @fiveoneecho@fiveoneecho8 ай бұрын
  • Great job dude, really educational. 👌

    @howardspeed3479@howardspeed3479 Жыл бұрын
  • the manifold garden edge shader stuff is from siggraph 2020, "that's a wrap"; the section that starts around 10 minutes

    @steubens7@steubens75 ай бұрын
  • Love these videos

    @alexhawksteel6@alexhawksteel6 Жыл бұрын
  • Glad to see another video :3

    @TavishMcEwen@TavishMcEwen Жыл бұрын
  • Wow! Fascinating.

    @FredPilcher@FredPilcher Жыл бұрын
  • The Manifold Garden dev tweeted their talk in response to this video. I don't think I can link it but it was a SIGGRAPH talk called "That's a wrap: A Manifold Rendering Retrospective"

    @TankorSmash@TankorSmash Жыл бұрын
  • finally some love for the kuwahara filter, i'm stunned it is so underused, zelda skyward sword used it on the wii and it was awesome! though on the switch release they didn't change the kernel size to fit with the increased resolution so it's almost non existant, making a huge visual feature of the game forgotten now. I'd love to see new uses of it like you showcased!

    @totidoki05@totidoki055 ай бұрын
  • For the edge detection journey you should look into the vertex color based approaches found in games like Rollerdrome or Mars First logistics. Using vertex colors you get to decide exactly where each edge goes. If I'm not entirely mistaken Manifold Garden relied on normals and depth for their edge detection. Sable is also a cool style utilizing edge detection but not sure how they did theirs. Though I have to admit what you did at 16:45 looked great. Makes me wanna try edge detection combined with Kuwahara filter in Unity.

    @siwone532@siwone5327 ай бұрын
  • I wish I could understand half of the things said in the video. Great video!

    @lucolesco@lucolesco Жыл бұрын
KZhead