Sne Posted March 10, 2014 Posted March 10, 2014 (edited) Hi! Lets say I have 3 (or more) pictures. 1 and 2 are nearly identical, 3rd contains an artifact. It'd be very nifty to have a plugin that can load all three, pick the wrong one of each 3 pixels, throw it out, then use the other 2 to render output. Several questions appear. 1. Is there maybe a plugin like that already? If not, I'd like to make one that utilizes some sort of voting logic. 2. How should I pick the wrong one? Median? 3. How should I use the remaining ones for output? Average? I'm asking because I can imagine a situation where, for example, the triplet of pixels is a ) red, blue and white with a hint of red. Median+average would result in 50% red. b ) red, blue and white with a hint of blue. Median+average would result in 50% blue. This could lead to a lot of noise. I want to avoid that if I'm going to make a plugin. 4. How long does it take to write one from scratch? Edited March 10, 2014 by Sne Quote
Ego Eram Reputo Posted March 10, 2014 Posted March 10, 2014 Try loading each image into separate layers. Set the Blend mode to XOR to see the differences between layers. The other blend modes should give you plenty of options to blend the layers together. There is also a plugin which extends the types of blend that can be applied (Blend Modes Plus - find it in the Plugin Index - there's a link in my signature). for writing plugins we recommend CodeLab. You will need some knowledge of C# to use this tool. 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
Sne Posted March 11, 2014 Author Posted March 11, 2014 Oh, I don't want to see the differences, though--I just want to erase them. Every Paint.NET operation, and Blend Modes Plus operation, acts on only two layers. I want to analyze 3 at once. I hope it's possible. So far I've been thinking that from 3 pixels I should simply pick one closest to both remaining ones to smoothen the noise, and add an option to picking two most similar and averaging them to enable sharpening. Quote
Ego Eram Reputo Posted March 11, 2014 Posted March 11, 2014 Effect plugins cannot operate over multiple layers. They get to read or write only to the current layer. Complex plugins sometimes use the clipboard to hold extra data to get around this limitation. You're probably going to have to analyze the differences between two layers then compare the third in two separate steps. 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
Sne Posted March 12, 2014 Author Posted March 12, 2014 Uh, I'm okay with using files instead of layers, like Anaglyph effect does but with only 2 files. I'm planning to use that. Quote
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.