Click here to Skip to main content
16,004,833 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: UDP/ TCP socket problem Pin
kk.tvm11-May-06 22:24
kk.tvm11-May-06 22:24 
Questionneeding help in algorithm Pin
V_shr11-May-06 3:46
V_shr11-May-06 3:46 
AnswerRe: needing help in algorithm Pin
toxcct11-May-06 3:51
toxcct11-May-06 3:51 
GeneralRe: needing help in algorithm Pin
V_shr11-May-06 3:57
V_shr11-May-06 3:57 
GeneralRe: needing help in algorithm Pin
toxcct11-May-06 4:03
toxcct11-May-06 4:03 
GeneralRe: needing help in algorithm Pin
V_shr11-May-06 4:13
V_shr11-May-06 4:13 
GeneralRe: needing help in algorithm Pin
toxcct11-May-06 4:14
toxcct11-May-06 4:14 
GeneralRe: needing help in algorithm Pin
Bob Flynn11-May-06 4:28
Bob Flynn11-May-06 4:28 
To find something like that I recommed correlation.

When you find your first red pixel, you sum the multiplication of all of the pixels in your defined "plus" with the ones in the appropriate location in the image. Since your image is noisy your defined "plus" needs to be thicker than a single pixel width. Once you get a total sum that exceeds a specified threshold, you declare that a "plus" has been found.

Since you have to deal with rotations, the appropriate locations for the multiplies will have to be computed taking different rotations into account. This will increase your processing time significantly. To reduce the number of iterations, once you find the first pixel you know that all other pixels will be right or down from there, assuming the origin is in the top left corner.

-- modified at 10:29 Thursday 11th May, 2006
GeneralRe: needing help in algorithm Pin
Russell'11-May-06 4:30
Russell'11-May-06 4:30 
GeneralRe: needing help in algorithm Pin
ThatsAlok11-May-06 22:31
ThatsAlok11-May-06 22:31 
GeneralRe: needing help in algorithm Pin
Bob Flynn11-May-06 4:17
Bob Flynn11-May-06 4:17 
GeneralRe: needing help in algorithm Pin
V_shr11-May-06 4:47
V_shr11-May-06 4:47 
GeneralRe: needing help in algorithm Pin
Russell'11-May-06 5:29
Russell'11-May-06 5:29 
GeneralRe: needing help in algorithm Pin
toxcct11-May-06 5:46
toxcct11-May-06 5:46 
GeneralRe: needing help in algorithm Pin
ThatsAlok11-May-06 22:33
ThatsAlok11-May-06 22:33 
GeneralRe: needing help in algorithm Pin
toxcct11-May-06 22:34
toxcct11-May-06 22:34 
GeneralRe: needing help in algorithm Pin
ThatsAlok11-May-06 22:46
ThatsAlok11-May-06 22:46 
GeneralRe: needing help in algorithm Pin
Scorpio12-May-06 0:21
Scorpio12-May-06 0:21 
GeneralRe: needing help in algorithm Pin
ThatsAlok12-May-06 2:14
ThatsAlok12-May-06 2:14 
GeneralRe: needing help in algorithm Pin
Bob Flynn11-May-06 6:38
Bob Flynn11-May-06 6:38 
AnswerRe: needing help in algorithm Pin
Stephen Hewitt11-May-06 13:49
Stephen Hewitt11-May-06 13:49 
QuestionCTreeCtrl and WM_LBUTTONUP Pin
LukeV11-May-06 3:25
LukeV11-May-06 3:25 
AnswerRe: CTreeCtrl and WM_LBUTTONUP Pin
Cedric Moonen11-May-06 3:47
Cedric Moonen11-May-06 3:47 
AnswerRe: CTreeCtrl and WM_LBUTTONUP Pin
Michael Dunn11-May-06 6:09
sitebuilderMichael Dunn11-May-06 6:09 
QuestionGUI frame work Pin
Dennis L11-May-06 2:31
Dennis L11-May-06 2:31 

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.