Click here to Skip to main content
15,898,373 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 9:11
Naturality9-Jun-08 9:11 
GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 10:06
Naturality9-Jun-08 10:06 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 14:32
Tim Craig9-Jun-08 14:32 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 15:10
Tim Craig9-Jun-08 15:10 
GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 15:43
Naturality9-Jun-08 15:43 
GeneralRe: Bitmap blur problem Pin
Christian Graus9-Jun-08 17:00
protectorChristian Graus9-Jun-08 17:00 
GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 17:06
Naturality9-Jun-08 17:06 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 17:27
Tim Craig9-Jun-08 17: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 17:49
Naturality9-Jun-08 17:49 
GeneralRe: Bitmap blur problem Pin
Christian Graus9-Jun-08 19:15
protectorChristian Graus9-Jun-08 19:15 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 20:32
Tim Craig9-Jun-08 20:32 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 20:35
Tim Craig9-Jun-08 20:35 
GeneralRe: Bitmap blur problem Pin
Christian Graus10-Jun-08 4:03
protectorChristian Graus10-Jun-08 4:03 
GeneralRe: Bitmap blur problem Pin
Naturality10-Jun-08 4:24
Naturality10-Jun-08 4:24 
GeneralRe: Bitmap blur problem Pin
Tim Craig10-Jun-08 9:53
Tim Craig10-Jun-08 9:53 
GeneralRe: Bitmap blur problem Pin
Naturality10-Jun-08 10:32
Naturality10-Jun-08 10:32 
GeneralRe: Bitmap blur problem Pin
Naturality10-Jun-08 11:51
Naturality10-Jun-08 11:51 
GeneralRe: Bitmap blur problem Pin
Naturality10-Jun-08 13:15
Naturality10-Jun-08 13:15 
GeneralRe: Bitmap blur problem Pin
Tim Craig10-Jun-08 14:55
Tim Craig10-Jun-08 14:55 
GeneralRe: Bitmap blur problem Pin
Tim Craig12-Jun-08 18:35
Tim Craig12-Jun-08 18:35 
GeneralRe: Bitmap blur problem Pin
Naturality13-Jun-08 11:41
Naturality13-Jun-08 11:41 
QuestionHow to highlight the particular row in Datagrid? Pin
gtag6-Jun-08 18:26
gtag6-Jun-08 18:26 
AnswerRe: How to highlight the particular row in Datagrid? [modified] Pin
Tim Craig6-Jun-08 20:28
Tim Craig6-Jun-08 20:28 
AnswerRe: How to highlight the particular row in Datagrid? Pin
Harvey Saayman20-Jun-08 2:39
Harvey Saayman20-Jun-08 2:39 
GeneralRe: How to highlight the particular row in Datagrid? Pin
gtag12-Jul-08 23:57
gtag12-Jul-08 23: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.