This is the Kuwahara Filter

Sdílet
Vložit
  • čas přidán 3. 11. 2022
  • 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
  • Věda a technologie

Komentáře • 796

  • @moth.monster
    @moth.monster Před rokem +2764

    If you added the noise in photoshop just press ctrl-z 4Head

  • @quentinchoumont3437
    @quentinchoumont3437 Před rokem +1783

    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

    • @Acerola_t
      @Acerola_t  Před rokem +481

      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.

    • @Crux_Riajuu
      @Crux_Riajuu Před rokem +11

      What was it called?

    • @quentinchoumont3437
      @quentinchoumont3437 Před rokem +65

      @@Crux_Riajuu Stagart Creations SC Post effects

    • @orbatos
      @orbatos Před rokem +12

      And this is probably better than what you paid for.

    • @ThePandaAgenda
      @ThePandaAgenda Před rokem +57

      @@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)

  • @jabadahut50
    @jabadahut50 Před rokem +536

    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.

    • @iluvpandas2755
      @iluvpandas2755 Před 7 měsíci +5

      Is there a way to use the effect in Godot?

    • @jabadahut50
      @jabadahut50 Před 7 měsíci +10

      @@iluvpandas2755 yeah you'd just have to write the shader for it into godots shader pipeline

    • @iluvpandas2755
      @iluvpandas2755 Před 7 měsíci +1

      I will try.

  • @InkDrop.
    @InkDrop. Před rokem +642

    Never stop making these videos. Your method of teaching is both fun(ny) and informative. Love it!

    • @Stowy
      @Stowy Před rokem +1

      nice pfp

    • @InkDrop.
      @InkDrop. Před rokem

      @@Stowy ayyy

    • @harriehausenman8623
      @harriehausenman8623 Před rokem

      yez!

    • @aiellamori
      @aiellamori Před 5 měsíci +1

      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

  • @thediktatortot9645
    @thediktatortot9645 Před rokem +72

    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

    • @Acerola_t
      @Acerola_t  Před rokem +26

      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.

    • @thediktatortot9645
      @thediktatortot9645 Před rokem +11

      @@Acerola_t Lol Just giving you a hard time. I enjoyed the video!

  • @KoongYe
    @KoongYe Před rokem +239

    As a Engineering major who is an artist now, this was like a content made for me.

    • @kellybraille
      @kellybraille Před rokem +20

      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?!?)

    • @DerMBen
      @DerMBen Před rokem +8

      I'm kinda in the oposite situation. I'm a design student going down a coding rabbit hole.

    • @charliehammer8780
      @charliehammer8780 Před 5 měsíci

      As an artist who loved the Emperor Wang Gun drama, I love your username! 😁

  • @glenneric1
    @glenneric1 Před rokem +58

    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.

    • @anteshell
      @anteshell Před 5 měsíci +7

      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?

    • @MarcelAndrian
      @MarcelAndrian Před 5 měsíci +4

      @@anteshell that's not op's point. would you rather have eye-less face instead of mole-less face?

    • @anteshell
      @anteshell Před 5 měsíci +1

      @@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.

    • @glenneric1
      @glenneric1 Před 5 měsíci +1

      @@anteshell You're fighting the entire cosmetics industry on this one.

    • @anteshell
      @anteshell Před 5 měsíci +1

      @@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.

  • @samfromcadott
    @samfromcadott Před rokem +67

    If you used the Kuwahara filter on level geometry and toon shading on objects, you would have a pretty good emulation of cel animation.

  • @Revoker1221
    @Revoker1221 Před rokem +15

    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 CZcams 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.

  • @SamHartwell420
    @SamHartwell420 Před rokem +11

    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!

  • @33gbm
    @33gbm Před rokem +23

    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.

  • @stefanomoscatelli4138
    @stefanomoscatelli4138 Před rokem +11

    You are truly one of the best at explaining complex matter while being careful to details

  • @Julian_H
    @Julian_H Před rokem +73

    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.

    • @SjorsHoukes
      @SjorsHoukes Před rokem +5

      See one of the top comments for the presentation video!

    • @LanceThumping
      @LanceThumping Před 8 měsíci +23

      @@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 "

    • @sqrt2295
      @sqrt2295 Před 7 měsíci +3

      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. 😭

  • @redotix9952
    @redotix9952 Před rokem +7

    Absolutely awesome video, and thank you so much for sharing your shaderwork publicly!

  • @Isleuntothyself_
    @Isleuntothyself_ Před rokem +2

    8:52 out of all song choices you chose one that makes me shiver thinking about that phase of my life

    • @LoveisStoredInTheLain
      @LoveisStoredInTheLain Před 8 měsíci

      Haha same. As much as miss that soundtrack dear god am I glad I’m not listening to it lmao

  • @nix3l_
    @nix3l_ Před rokem +18

    love the editing on this one. great job

  • @MaraJinksblade
    @MaraJinksblade Před rokem

    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.

  • @xanderlinhares
    @xanderlinhares Před rokem +14

    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!

  • @FROZENbender
    @FROZENbender Před 11 měsíci

    absoultely incredible. your depth of knowledge on this subject is deeply fascinating

  • @KrisDesChacals
    @KrisDesChacals Před rokem +7

    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.

  • @helioom
    @helioom Před dnem

    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!!

  • @randomess61
    @randomess61 Před rokem +1

    I love the simple but entertaining editing! Good stuff

  • @zloboslav_
    @zloboslav_ Před rokem

    A random CZcams suggestion became an instant sub - thoroughly informative and immensely entertaining all within my attention span! Thank you!

  • @AlexStrook
    @AlexStrook Před rokem

    wonderful video, the final shader gives insanely cool looking result!
    The kuwahara + pixel art tests are so tasty!

  • @SaintSkeleton
    @SaintSkeleton Před rokem

    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!

  • @bogward4330
    @bogward4330 Před rokem +3

    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.

  • @outoftheshell
    @outoftheshell Před rokem

    I love these videos! Love how you balance information while still being entertaining! Keep it up!

  • @Squish_Squash
    @Squish_Squash Před 8 měsíci +1

    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!

  • @lukedare-white3131
    @lukedare-white3131 Před rokem

    These are such good videos, I'm really glad to see your channel growing!

  • @anders9958
    @anders9958 Před rokem +1

    This is your first video I've seen, I'm very impressed by your content. Subbed!

  • @Monad_of_Eirye
    @Monad_of_Eirye Před rokem +3

    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 :)

  • @kylebanks
    @kylebanks Před rokem +3

    These are probably my favourite videos on YT at the moment, keep it up!

  • @oltimeri8256
    @oltimeri8256 Před rokem +6

    Can’r wait to watch this later tonight!
    Im in an in-person meeting right now.

  • @microdavid7098
    @microdavid7098 Před rokem

    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 Před rokem

      been looking for techniques of blurring and stylizing pixel art without succeeding. Now this will definitely be of a lot of help

  • @JohnyK07
    @JohnyK07 Před rokem

    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".

  • @Pipubbles
    @Pipubbles Před rokem +11

    Love the Danganronpa music when explaining something, also I am so glad you are starting to pick up subscribers wise. You deserve it.

  • @zuzej
    @zuzej Před rokem

    wow finally a very informative, detailed and funny video on shaders. thank you!

  • @erichbauer3991
    @erichbauer3991 Před rokem +3

    really cool video, I've only heard about it in passing but always wanted to get more indepth with it

  • @benjaminha9031
    @benjaminha9031 Před rokem +2

    LETSS GOOO!
    I can tell you out a lot of work in this video. Keep it up ☺️!

  • @Voshchronos
    @Voshchronos Před rokem

    Man, just found out your channel. Absolutely amazing, I'm in awe!

  • @roborogue_
    @roborogue_ Před rokem +1

    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

  • @jasonrodriguez1331
    @jasonrodriguez1331 Před rokem

    I've been waiting since the announcement for the video, loved it.

  • @Nosferatu-_-
    @Nosferatu-_- Před rokem

    I'm glad you take as much time as you need to make quality videos.

  • @pomponi0
    @pomponi0 Před rokem +2

    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.

  • @kuroi_iruka
    @kuroi_iruka Před rokem +13

    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.)

  • @CausticCatastrophe
    @CausticCatastrophe Před rokem +15

    We appreciate the work you put into these videos. love the balance of the explanation.

  • @NikZapp
    @NikZapp Před rokem

    i love this channel! glad to see that its still active!

  • @TheJackpotgamer
    @TheJackpotgamer Před rokem

    Lets goooo it's another Acerola video, always love how interesting these are

  • @MarkDavidTeo
    @MarkDavidTeo Před rokem +11

    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!

  • @TrancorWD
    @TrancorWD Před 8 měsíci +2

    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!

  • @xelshade
    @xelshade Před rokem +19

    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.

    • @Acerola_t
      @Acerola_t  Před rokem +8

      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

  • @csxcatgirl9896
    @csxcatgirl9896 Před rokem

    your vids are pieces of art, thank you

  • @bzikarius
    @bzikarius Před 6 měsíci

    hey! You did great work/compilation of ideas, and thanks for sharing them for free!

  • @robertviragh6527
    @robertviragh6527 Před 4 měsíci +1

    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.

  • @wizard_fu
    @wizard_fu Před 5 měsíci

    i love the rant about branching at around 8:45. acerola, you are the best

  • @AzoreanProud
    @AzoreanProud Před rokem

    Such an underrated channel, exceptional in so many areas and doing it alone (i assume).

    • @Acerola_t
      @Acerola_t  Před rokem +1

      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

  • @nathanlebon5813
    @nathanlebon5813 Před 11 měsíci

    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.

  • @cansutamer2009
    @cansutamer2009 Před rokem

    Amazing video!! And absolutely rocking the omocat shirt 😌👌

  • @Xynteract
    @Xynteract Před 8 měsíci

    Keep it going. This could be a new great courses class!

  • @lowresbones
    @lowresbones Před rokem

    Damn, I love these videos!

  • @kaustik185
    @kaustik185 Před rokem

    7:38 and now I have a song I had forgotten about stuck in my head all day.
    Thanks I guess.

  • @McBreadbox
    @McBreadbox Před rokem +1

    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

  • @slein_grobaaf
    @slein_grobaaf Před 11 měsíci

    killer video and use of the filter - thanks

  • @RCrosbyLyles
    @RCrosbyLyles Před rokem

    Fascinating! Great stuff!

  • @jimmy9013
    @jimmy9013 Před rokem

    i wish i had the bravery in your delivery, thankss good stuff

    • @jimmy9013
      @jimmy9013 Před rokem

      Carcass interview - Bill
      astonishingly good, bastards :)

  • @iluvpandas2755
    @iluvpandas2755 Před 7 měsíci

    I love the kurahara filter’s look. It has a good detail retention.

    • @iluvpandas2755
      @iluvpandas2755 Před 7 měsíci

      I actually perfer it over the generalized kurahara.

  • @ComplejamenteSimple
    @ComplejamenteSimple Před rokem

    That was great storytelling. Thanks!

  • @technoo4891
    @technoo4891 Před rokem +1

    Great video as always.

  • @DragonWistArt
    @DragonWistArt Před rokem

    This channel is such an underrated gem.

  • @dorktales254
    @dorktales254 Před rokem

    best channel i've subbed to in a long time

  • @theveryloosegoose
    @theveryloosegoose Před 9 měsíci +2

    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.

  • @simonstrandgaard5503
    @simonstrandgaard5503 Před rokem

    Graphics algorithms, a hobby of mine. Love your explanations.

  • @chunkyquail
    @chunkyquail Před rokem

    Great video. Amazing image effects.

  • @mooncatcher_
    @mooncatcher_ Před rokem

    You did such a good job on this video

  • @binkbonkbones3402
    @binkbonkbones3402 Před rokem

    Actually I've been looking specifically for this, this is extremely helpful, thank you.
    👁👄👁

  • @TheMartiansLoveKuato
    @TheMartiansLoveKuato Před 5 měsíci

    This is well presented, educational, and helpful.

  • @lydianlights
    @lydianlights Před rokem +1

    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.

  • @FatihTurkerFatih
    @FatihTurkerFatih Před rokem

    You are doing spectacular job.

  • @Srcsqwrn
    @Srcsqwrn Před 3 měsíci

    My computer works again, so now I can enjoy your videos again! c:
    I hope I can put use to some of them!

  • @shi76b
    @shi76b Před rokem

    you are seriously good at explaining things.

  • @_jonathancollins
    @_jonathancollins Před rokem +4

    This is brilliant and inspiring! Thanks for breaking things down so well!

  • @heindijs
    @heindijs Před měsícem

    i like your shirt. that pretty boy comic always was such a heartwarmer

  • @paer124
    @paer124 Před rokem +2

    Since CZcams 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.

    • @Acerola_t
      @Acerola_t  Před rokem +2

      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.

  • @madcow5833
    @madcow5833 Před rokem

    Not a patreon yet, but I liked and subscribed. And now I wrote a comment. Great stuff!

  • @th3_sull1van
    @th3_sull1van Před rokem +2

    Yay, you're back!

  • @morganlak4337
    @morganlak4337 Před rokem +2

    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!

  • @RedHedDes
    @RedHedDes Před rokem

    Man, amazingly chaotic music choices
    I love it

  • @the-white-eye
    @the-white-eye Před rokem +7

    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

  • @jairorodriguezblanco615

    These videos are like asmr, cheers

  • @LE0NSKA
    @LE0NSKA Před 5 měsíci

    what a random pleasent find. great stuff

  • @fiveoneecho
    @fiveoneecho Před 8 měsíci

    Wow using the eigen vectors of the structure tensor is actually really smart… That’s really cool!

  • @howardspeed3479
    @howardspeed3479 Před rokem

    Great job dude, really educational. 👌

  • @steubens7
    @steubens7 Před 5 měsíci +1

    the manifold garden edge shader stuff is from siggraph 2020, "that's a wrap"; the section that starts around 10 minutes

  • @alexhawksteel6
    @alexhawksteel6 Před rokem

    Love these videos

  • @TavishMcEwen
    @TavishMcEwen Před rokem

    Glad to see another video :3

  • @FredPilcher
    @FredPilcher Před rokem

    Wow! Fascinating.

  • @TankorSmash
    @TankorSmash Před rokem +1

    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"

  • @totidoki05
    @totidoki05 Před 5 měsíci

    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!

  • @siwone532
    @siwone532 Před 7 měsíci +1

    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.

  • @lucolesco
    @lucolesco Před rokem +2

    I wish I could understand half of the things said in the video. Great video!