15,968,824 members
Home / Discussions / Graphics

# Graphics

 Re: Bitmap blur problem Naturality8-Jun-08 13:11 Naturality 8-Jun-08 13:11
 Re: Bitmap blur problem Tim Craig8-Jun-08 18:58 Tim Craig 8-Jun-08 18:58
 Re: Bitmap blur problem [modified] Naturality9-Jun-08 4:44 Naturality 9-Jun-08 4:44
 Re: Bitmap blur problem Tim Craig9-Jun-08 9:05 Tim Craig 9-Jun-08 9:05
 Re: Bitmap blur problem Naturality9-Jun-08 9:11 Naturality 9-Jun-08 9:11
 Re: Bitmap blur problem Naturality9-Jun-08 10:06 Naturality 9-Jun-08 10:06
 Re: Bitmap blur problem Tim Craig9-Jun-08 14:32 Tim Craig 9-Jun-08 14:32
 Re: Bitmap blur problem Tim Craig9-Jun-08 15:10 Tim Craig 9-Jun-08 15:10
 Ok, courtesy of Wikipedia I've brushed up on Gaussian blurring. You're trying to replace each pixel, well at last those not on an edge with a weighted average of itself and the 8 pixels surrounding it. You have your weights in the array and are multiplying the pixel by the weight and diving by the sum of the weights (16). Two things. First and most glaring is why do you divide the blurred values by "size", 9 on your case? That's going to make things dark as you just cut each pixel value to 1/9 of its value, something less than 23 maximum out of the possible 255 if I did that right. Second, you'd be more accurate to do the division after you've fully accumulated the 9 weighted pixel values. The way you have it, you get a little truncation for each of the 9. If you wait until the end, you only get the truncation once. So get rid of the division by 16 in the loop and replace "size" by 16 at the end. Now to figure out how you're getting the 9 pixels to average. All I know for sure is that I'm 99.9% sure what you're doing isn't right. If you don't have the data, you're just another a**hole with an opinion.
 Re: Bitmap blur problem Naturality9-Jun-08 15:43 Naturality 9-Jun-08 15:43
 Re: Bitmap blur problem Christian Graus9-Jun-08 17:00 Christian Graus 9-Jun-08 17:00
 Re: Bitmap blur problem Naturality9-Jun-08 17:06 Naturality 9-Jun-08 17:06
 Re: Bitmap blur problem Tim Craig9-Jun-08 17:27 Tim Craig 9-Jun-08 17:27
 Re: Bitmap blur problem Naturality9-Jun-08 17:49 Naturality 9-Jun-08 17:49
 Re: Bitmap blur problem Christian Graus9-Jun-08 19:15 Christian Graus 9-Jun-08 19:15
 Re: Bitmap blur problem Tim Craig9-Jun-08 20:32 Tim Craig 9-Jun-08 20:32
 Re: Bitmap blur problem Tim Craig9-Jun-08 20:35 Tim Craig 9-Jun-08 20:35
 Re: Bitmap blur problem Christian Graus10-Jun-08 4:03 Christian Graus 10-Jun-08 4:03
 Re: Bitmap blur problem Naturality10-Jun-08 4:24 Naturality 10-Jun-08 4:24
 Re: Bitmap blur problem Tim Craig10-Jun-08 9:53 Tim Craig 10-Jun-08 9:53
 Re: Bitmap blur problem Naturality10-Jun-08 10:32 Naturality 10-Jun-08 10:32
 Re: Bitmap blur problem Naturality10-Jun-08 11:51 Naturality 10-Jun-08 11:51
 Re: Bitmap blur problem Naturality10-Jun-08 13:15 Naturality 10-Jun-08 13:15
 Re: Bitmap blur problem Tim Craig10-Jun-08 14:55 Tim Craig 10-Jun-08 14:55
 Re: Bitmap blur problem Tim Craig12-Jun-08 18:35 Tim Craig 12-Jun-08 18:35
 Re: Bitmap blur problem Naturality13-Jun-08 11:41 Naturality 13-Jun-08 11:41
 Last Visit: 31-Dec-99 18:00     Last Update: 15-Aug-24 7:43 Refresh ᐊ Prev1...43444546474849505152 Next ᐅ