I have this BufferedImage object that is guaranteed to contain only one color. I use it to display a sample image to show the size, shape and hardness of the brush in the paint tool. I tried several different implementations of blur for hardness ... the last thing that seems to work quite well is the Stack Filter , written by Romain Guy.
I have two problems.
1 channel faster than 4 ?: None of the blur filters I tried seem pretty fast ... I understand this question has been asked before (and I'm not quite ready to try pulling FFTW with C), but I'm interested Is there a way to perform blur using ONLY alpha channel bits? The image contains only one color, so none of the other bits will change at different points in any case, and I think that would reduce the number of blur calculations to about 25% of the entire blur operation, and I believe that this can lead to a noticeable performance improvement? I could not find any information about this verified through a web search.
Elimination of the dark halo:. Every time I try to use a different blur algorithm, I have to rewrite it to get rid of the dark shadow around the shape caused by the blur in the "black" color, from colorless pixels where nothing has been written so far. I read about it, and I use (as far as I know) the image types INT_ARGB_PRE, which, as I recall, I read as a solution to this problem. Am I missing something in this solution? Do I need to pre-format the image to interpret all empty pixels as white, not black?
Thanks!
source share