Jump to content

Rei

Members
  • Content Count

    27
  • Joined

  • Last visited

Everything posted by Rei

  1. @ingwer I watched the video, and albeit not understanding german well, I think you did a great job showcasing Radial Fade! I'm honored, thank you for your work!
  2. Otsu's method is a famous algorithm which uses brightness distribution in an image to determine the ideal threshold to turn the image black & white. Before : After: This is typically useful for automatic image processing. Eli found some interesting properties for this effect that you can check out here. Download : Otsu.zip It will be installed under Effects\Stylize. For more information on the plugin itself, please go to the development thread. Many thanks to MJW who helped me make this a viable plugin.
  3. Thanks! I'll integrate that in the next version. I was suspecting there was a better modifier that I didn't know of for this.
  4. Thanks! I'll integrate that in the next version. I was suspecting there was a better modifier that I didn't know of for this.
  5. Updated to 1.2. For some reason, all the beginning of my post (up to the download section) disappears sometimes when I edit my post, and a bunch of links to the Wikipedia page of Otsu just fill the post. It's the third time that this happens, so I'm not redoing it until the final release, unless I find a way to view older versions.
  6. Wow, awesome, thanks! Iterating over this is going to be so much better! Hope I get to work on this soon.
  7. @MJW Ahah, you're right about the threshold being computed on the wrong pixels. However, I fail to see why it wouldn't be possible to limit a plugin's ability to read pixels to the selection. Ignoring the problem of non-rectangular selections, if you consider the src Surface to be the selection rather than the whole image, then 0 is effectively selection.Left and selection.Top. I'll trust you however that this is not the case.
  8. No thanks, it's very nice of you but I'd rather do it on my own, I need the practice. It's a very interesting article, it may really come in handy! Thanks for bringing my attention to it.
  9. If I understand correctly, you mirror the image and run the effect on each half individually? If that's the case, you're probably not selecting exactly half of the image, therefore the color distribution is different, and the threshold is slightly different. If you're doing this on 2 separate images, it's surprising. It could be that PDN doesn't create perfect mirrors, but most likely it's my implementation that's slightly affected by the order in which pixels are analyzed. I realized that might be a problem as I was copy/pasting/editing, but ended up forgetting about it. I'll try to ge
  10. Download : Otsu.zip It will be installed under Effects\Stylize. Algorithm by Nobuyuki Otsu Code ported from ImageJ plugin by me Original Java code by Hugo MARTIN Made with the CodeLab plugin for Paint.NET Source code : Hidden Content: static readonly int NB_LEVEL_GRAY = 256; bool isFirst = true; int threshold; byte getGrayscaleValue(ColorBgra pixel){ return (byte) (0.2126*pixel.R + 0.7152*pixel.G + 0.0722*pixel.; } int getOtsuThreshold(Surface src){ int otsuThreshold = 0; /** * Otsu threshold determination */ double nbPixels = 0; double[] probabi
  11. One of my favorite plugins. Great work. Also, photos need to be reuploaded. EDIT : Here are some photo comparisons, since the ones provided by OP are broken. In all compressed images, maximum level of compression (5/5) was used. Audi A5 before (321 KB in PNG): Audi A5 after PNG Preprocessor (185 KB = 57.6% of original size) Audi A5 High-Quality JPEG : 41.59 KB Lena Söderberg before (1.77 MB) Lena Söderberg after (978.2 KB = 55.3%) Lena Söderberg High-Quality JPEG : 134 KB "Pub" by GUWEIZ on DeviantArt (1.45 MB) "Pub" by GUWEIZ after (790 KB = 54.5%) "Pub
  12. I just checked in today and saw this plugin hit 1000 downloads! I'm surprised and glad it helped out so many people. This was just an introduction to basic C# syntax for me, and I'm happy it became more than that to >1k users. Have fun using it
  13. @Eli Thanks! Speaking of being back, some friends and I are going to write a playing-card detection plugin for ImageJ soon, and I'll try to port it to Paint.NET afterwards.
  14. You're very welcome! Glad to know it's helpful! Don't hesitate to leave suggestions if you feel something is missing. I never thought this plug-in would get over 15 downloads and a couple comments, so I'm surprised and humbled at all the attention it got.
  15. As OP's answer isn't very clear about Windows Ink, here's a more in-depth explanation : Windows Ink is a Microsoft feature that allows some tablet users (depending on the brand and model of the tablet) to write by hand in text boxes. It opens window similar to the on-screen keyboard, but that detects handwriting and converts it (badly) to text. When Windows Ink is activated (which is the default behavior), movements smaller than about 3mm are not detected. This is very annoying, especially when drawing details. Windows Ink appeared in Windows XP with the Tablet PC Settings, a set of default dr
  16. Alternatively, if you're not afraid of history being cleared, you can restart pdn.
  17. This is amazing. Did you come up with the algorithm yourself?
  18. No problem~ if you have any suggestions or feedback, please do leave a comment
  19. You put both files on your desktop and double-click the .bat. Or you put the dll file in Program Files\paint.net\Effects and the bat in the recycle bin.
  20. I'm not sure what you mean. If you're wondering which submenu you can find the effect after installation; it should be Effects\Render. Great to know it's useful! I'll try working on a panning system ; but in the meantime you can select the area you want to fade ; since this works by selection : it will fade from the center to the edge of the selection. You might be able to make do with that until I implement the panning. Thanks for the idea! EDIT : Implemented panning
  21. Thanks Strangely, I thought I added the zip with the dll and a .bat that installs it ; but it's obviously not there. Something must've gone wrong, I'll try it again. Thanks, I'll do that next time, but I already have the zip on my desktop, so I won't go through the whole recompiling process. EDIT : OK, I added the dll to my first post. Thanks for pointing that out, Ego.
  22. It can indeed. I didn't even see that option, and feel like an idiot for having gone through all that. Meh, at least I got some experience out of it. That being said, it seems to me the transparency gain over distance to center can't be tampered with, so I guess this still can be useful... -ish.
×
×
  • Create New...