Click here to Skip to main content
15,849,304 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 10:11
Naturality9-Jun-08 10:11 
GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 11:06
Naturality9-Jun-08 11:06 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 15:32
Tim Craig9-Jun-08 15:32 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 16:10
Tim Craig9-Jun-08 16:10 
GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 16:43
Naturality9-Jun-08 16:43 
GeneralRe: Bitmap blur problem Pin
Christian Graus9-Jun-08 18:00
protectorChristian Graus9-Jun-08 18:00 
GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 18:06
Naturality9-Jun-08 18:06 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 18:27
Tim Craig9-Jun-08 18:27 
Ok, for starters I believe you're scanning the input image correctly now, x and y cover the correct pixels. However, you want to grab 3 pixels from the previous row right above the target pixel, three from the current row including the two on either side of the target, and the from the next row. So xp and yp have to take the values, [-1, 0, 1]. You start with 0 and your test of xp < 4 actually makes xp go from 0, 1, 2, 3. So you're getting the wrong pixel correlated.

Also, after you call avg(), you should only be setting 1 pixel in the output image, the one at x, y. So the second set of for loops need to vanish.

If you don't have the data, you're just another a**hole with an opinion.

GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 18:49
Naturality9-Jun-08 18:49 
GeneralRe: Bitmap blur problem Pin
Christian Graus9-Jun-08 20:15
protectorChristian Graus9-Jun-08 20:15 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 21:32
Tim Craig9-Jun-08 21:32 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 21:35
Tim Craig9-Jun-08 21:35 
GeneralRe: Bitmap blur problem Pin
Christian Graus10-Jun-08 5:03
protectorChristian Graus10-Jun-08 5:03 
GeneralRe: Bitmap blur problem Pin
Naturality10-Jun-08 5:24
Naturality10-Jun-08 5:24 
GeneralRe: Bitmap blur problem Pin
Tim Craig10-Jun-08 10:53
Tim Craig10-Jun-08 10:53 
GeneralRe: Bitmap blur problem Pin
Naturality10-Jun-08 11:32
Naturality10-Jun-08 11:32 
GeneralRe: Bitmap blur problem Pin
Naturality10-Jun-08 12:51
Naturality10-Jun-08 12:51 
GeneralRe: Bitmap blur problem Pin
Naturality10-Jun-08 14:15
Naturality10-Jun-08 14:15 
GeneralRe: Bitmap blur problem Pin
Tim Craig10-Jun-08 15:55
Tim Craig10-Jun-08 15:55 
GeneralRe: Bitmap blur problem Pin
Tim Craig12-Jun-08 19:35
Tim Craig12-Jun-08 19:35 
GeneralRe: Bitmap blur problem Pin
Naturality13-Jun-08 12:41
Naturality13-Jun-08 12:41 
QuestionHow to highlight the particular row in Datagrid? Pin
gtag6-Jun-08 19:26
gtag6-Jun-08 19:26 
AnswerRe: How to highlight the particular row in Datagrid? [modified] Pin
Tim Craig6-Jun-08 21:28
Tim Craig6-Jun-08 21:28 
AnswerRe: How to highlight the particular row in Datagrid? Pin
Harvey Saayman20-Jun-08 3:39
Harvey Saayman20-Jun-08 3:39 
GeneralRe: How to highlight the particular row in Datagrid? Pin
gtag13-Jul-08 0:57
gtag13-Jul-08 0:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.