Hawkynt Posted March 3, 2012 Posted March 3, 2012 (edited) I finally packed my image filtering library into a Paint.NET Plugin which can be downloaded here: 2dImageFilter-r133.dll https://hawkynt.github.io/2dimagefilter/ Find these filters in Effects > Tools > 2D Image Filter This library contains all of the standard algorithms used in various emulators (like VirtualGB, Mame, DOSBox, SNES9x, ZSNES to name some of them). I adapted them to be used not only on pixel graphics by giving them the ability to identify pixels that are alike and not exactly the same color. They will interpolate on matches to give slightly better results than their original. Even though some scaler's seem to result in the same image, they're all slightly different and the best fit heavily depends on the source material. All Algorithms have been rewritten from scratch by looking at the original code, understanding and then adapting so these should be clean (schoolar) version of the algo's. Thanks to all the people that made up their minds and invented these scalers. Without them I couldn't have coded this. To demonstrate some of the filtering techniques, I will use this image: Scale2x: AdvInterp2x: Scale3x: AdvInterp3x: Bilinear+(Original): Bilinear+: Eagle2x: Eagle3x (I invented this one because it did not exists before): Eagle3x(Variant B ): Super Eagle: Scale and Interpolate (alias SaI2x): Super Scale and Interpolate (alias SuperSai): EPXB: EPXC: EPX3: HQ2x(Normal, Bold and Smart, HQ4x, HQ2x3, HQ2x4, etc.): HQ3x(which is also available as normal, bold and smart version): LQ2x(also LQ3x, LQ4x, Normal, Smart, Bold, LQ2x3, LQ2x4, etc.): XBR4x( also XBR2x, XBR3x, with and without color interpolation): Also included in this package: Scanline Effects, RGB Effects, TV Effects, RGB- and YUV- Channel extraction and many more. I recommend using "Render to Clipboard" and paste the result into a new image because the plugin can not resize the canvas itself. The development thread can be found here. Edited August 1, 2019 by toe_head2001 1 3 Quote
YARDofSTUF Posted March 3, 2012 Posted March 3, 2012 I like some of the channel extraction stuff. The filters would be even more handy if you didn't have to do the whole clipboard thing, but it seems cool. What I don't like is that you stuffed it all into 1 plugin and put it in a section under your name, rather than putting them in the correct sections. Quote
Ego Eram Reputo Posted March 3, 2012 Posted March 3, 2012 Impressive plugin! You've put an enormous amount of effort into this. Well done! ... What I don't like is that you stuffed it all into 1 plugin and put it in a section under your name, rather than putting them in the correct sections. I don't see that these filters belong anywhere BUT in one plugin. You want an individual plugin for each?? RE: Location. Perhaps the plugin could have been placed under the Distort submenu, but I really don't have a problem with this placement because of its very specialized nature. There are many examples already out there... Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker
delpart Posted March 4, 2012 Posted March 4, 2012 I would suggests the Tools menu for its placement. This is a relatively specialized application effect or tool of sorts. I only ask for another location besides a named sub-menu as I have space issues already with the length of the effects drop down menu. Again, thanks for not only the effort but the links to all the side conversations and information on what is being done with this under the hood. Quote *** Gallery at PDN-Fans
YARDofSTUF Posted March 4, 2012 Posted March 4, 2012 I don't see that these filters belong anywhere BUT in one plugin. You want an individual plugin for each?? Ya I guess it does fit well in 1. I wasnt thinking 1 for each, but like 1 for scan lines, then all the 2x and 3x filters and then 1 for the color extracting filters, but playing with it more its not so much a big deal. And if my mouse wheel worked correctly it wouldn't be an issue at all for me. lol Quote
Hawkynt Posted March 4, 2012 Author Posted March 4, 2012 (edited) OK guys, from Version r25b on, it will be under Tools. I just released it. Edited March 4, 2012 by Hawkynt 2 Quote
wakanayumi Posted May 17, 2012 Posted May 17, 2012 (edited) @Hawkynt. I went to your download link, but instead of 1 download, there are 2. Where should I put the "ImageResizer-r26.exe"? Is it even for PDN at all, or is it for something else, & if not for PDN, then for what? Also, I sugges that you put all of your downloads into zip folders, in case somebody has to use an online connection that blocks download "dll" files. Edited May 17, 2012 by wakanayumi Quote
Hawkynt Posted May 17, 2012 Author Posted May 17, 2012 The executable is not for Paint.NET. It can be used without Paint.NET to resize images from the command line or by using the built-in GUI. Quote
qwertyuu Posted August 15, 2012 Posted August 15, 2012 Wow! Incredible! A picture so small... became so big! It's... wow! You'll be able to get some old 19s pictures in super high definition in like 30 seconds... you're a genious! Quote
toe_head2001 Posted February 24, 2015 Posted February 24, 2015 I don't know why Hawkynt hasn't been around, but it appears he's still working on this. There's a new build from sometime in the last two months on the project page. The download link for the .dll is on the far left of the page. https://code.google.com/p/2dimagefilter/ Just thought I'd let everyone know. Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab
racerx Posted February 25, 2015 Posted February 25, 2015 I downloaded v1.1.29 and it has an interesting list of resizers. I was surprised it did not include nnedi3 or even Spline64 resizers. In my limited testing, I couldn't find a resizer in the list that would outperform nnedi3 in upsizing. Quote
toe_head2001 Posted February 25, 2015 Posted February 25, 2015 I downloaded v1.1.29 and it has an interesting list of resizers. I was surprised it did not include nnedi3 or even Spline64 resizers. In my limited testing, I couldn't find a resizer in the list that would outperform nnedi3 in upsizing.Are you referring to the paint.net plugin, or the standalone .exe version? The plugin is at v1.1.3.3. As for the filters in the plugin, they're meant for up-scaling pixel art, not for up-scaling video into HD resolutions. Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab
racerx Posted February 25, 2015 Posted February 25, 2015 Yes, I know. I tried both standalone and plugin versions on an image, not video. I did a 4x upsize on a jpg for comparison tests. Quote
Ego Eram Reputo Posted February 25, 2015 Posted February 25, 2015 2dImageFilter-r133.dll is not showing up for me under the previous Effects > Hawkynt submenu. Where is it located? Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker
toe_head2001 Posted February 25, 2015 Posted February 25, 2015 2dImageFilter-r133.dll is not showing up for me under the previous Effects > Hawkynt submenu. Where is it located? Effects > Tools > 2D Image Filter Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab
Ego Eram Reputo Posted February 25, 2015 Posted February 25, 2015 Thanks. First post updated accordingly. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker
iamnoob Posted May 25, 2015 Posted May 25, 2015 Could someone please help me; am trying to test this plugin but every filter from it makes my image off-center, like this: Original, before plugin: Every filter of this plugin does this to it: Am I doing something wrong? Quote
toe_head2001 Posted May 25, 2015 Posted May 25, 2015 On 5/25/2015 at 6:47 AM, iamnoob said: Am I doing something wrong? The plugin is able to scale the image, but not the canvas. Before you run the plugin, you'll want to Resize the Canvas () (Ctrl + Shift + R) accordingly. For example, if it's a 2x scaler, resize the canvas by 200%. When resizing the canvas, you'll also need to anchor the image to the top-left of the canvas. Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab
iamnoob Posted May 25, 2015 Posted May 25, 2015 The plugin is able to scale the image, but not the canvas. Before you run the plugin, you'll want to Resize the Canvas ( :CanvasSize:)(Ctrl + Shift + R) accordingly. For example, if it's a 2x scaler, resize the canvas by 200%. When resizing the canvas, you'll also need to anchor the image to the top left of the canvas. Ahhh, it's the anchoring I didn't consider. I did try resizing, but not anchoring. Now it works fine. Thanks! P.S. - By "anchor", do you mean just use the move tool and place it in the corner? Because that's what I did. Quote
Red ochre Posted May 25, 2015 Posted May 25, 2015 Alternatively use 'Render to clipboard', then open a new image (it will be at the new size) and paste. 1 Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings
iamnoob Posted May 25, 2015 Posted May 25, 2015 Alternatively use 'Render to clipboard', then open a new image (it will be at the new size) and paste. Can't find that option. Quote
toe_head2001 Posted September 12, 2016 Posted September 12, 2016 It looks like @Hawkynt moved the project over to GitHub. https://hawkynt.github.io/2dimagefilter/ The download link for the paint.net plugin is at the bottom of that page. Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.