Click here to Skip to main content
15,891,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
I want, I want, I want.

Since this site is not about doing the job for you, but helping you with problems, I will point you in a good direction and wait to see what effort you make.

Search code project for the following types of article
image processing and pattern recognition

Some thoughts to consider are:
1) Are you looking for a specific size red plus or any two crossing lines of any thinkness and any length? It becomes easier if you know the exact size, thinkness of lines and orientation of the "plus"
2) How is the "plus" put on the image. Can it be partly off your image?

For a first cut approach, assuming you know the exact color red (or even the range of colors), try searching through each pixel in your image until you find a red one. Then you need to see if the shape of your plus is in the appropriate adjoining pixels (this is a series of checks over a specific set of offsets from your "found" red pixel. If you get a match, then you have to check some more to make sure that you are not in a field of red.

If your "plus" can be partly off the edge, you will have to compute the remaining portions of the plus and use the approach above with a modified definition of a "plus"


This is brute force. There are probably better ways to do this. But this will get you started.

Good luck.


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 
AnswerRe: GUI frame work Pin
Cedric Moonen11-May-06 2:36
Cedric Moonen11-May-06 2:36 
GeneralRe: GUI frame work Pin
Dennis L11-May-06 2:43
Dennis L11-May-06 2:43 
AnswerRe: GUI frame work Pin
Maximilien11-May-06 3:47
Maximilien11-May-06 3:47 

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.