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

C / C++ / MFC

 
JokeRe: MFC,goto definition of XXX Pin
CPallini19-Nov-09 20:27
mveCPallini19-Nov-09 20:27 
AnswerRe: MFC,goto definition of XXX Pin
m_mun19-Nov-09 20:37
m_mun19-Nov-09 20:37 
GeneralRe: MFC,goto definition of XXX Pin
sashoalm19-Nov-09 20:51
sashoalm19-Nov-09 20:51 
GeneralRe: MFC,goto definition of XXX Pin
lxkjlzz19-Nov-09 20:52
lxkjlzz19-Nov-09 20:52 
AnswerRe: MFC,goto definition of XXX Pin
lxkjlzz19-Nov-09 21:24
lxkjlzz19-Nov-09 21:24 
GeneralRe: MFC,goto definition of XXX Pin
krmed20-Nov-09 0:41
krmed20-Nov-09 0:41 
GeneralRe: MFC,goto definition of XXX Pin
lxkjlzz22-Nov-09 14:47
lxkjlzz22-Nov-09 14:47 
QuestionImage comparison - How to read an image so you can compare pixels? Pin
justabeagle19-Nov-09 19:15
justabeagle19-Nov-09 19:15 
I am writing a program in C that compares two images taken by a camera to see if they are different. I have an idea of how to do this, by putting the images into 2 dimensional arrays and comparing the RGB value at corresponding array positions, however I cannot figure out how to get the image into an array.

I've found a ton of example of how to do this in C#, but that's not so helpful. The only bit of C code I've been able to find uses fread() to read the images but that doesn't seem to work.

I've also heard some suggestions that converting the images to greyscale is helpful in comparing the pixels. Agree? Disagree? And I've been working with jpegs, but is there another format that might work better?

Thanks in advance
AnswerRe: Image comparison - How to read an image so you can compare pixels? Pin
Game-point19-Nov-09 19:28
Game-point19-Nov-09 19:28 
GeneralRe: Image comparison - How to read an image so you can compare pixels? Pin
justabeagle19-Nov-09 20:10
justabeagle19-Nov-09 20:10 
AnswerRe: Image comparison - How to read an image so you can compare pixels? Pin
«_Superman_»19-Nov-09 19:53
professional«_Superman_»19-Nov-09 19:53 
GeneralRe: Image comparison - How to read an image so you can compare pixels? Pin
justabeagle19-Nov-09 20:13
justabeagle19-Nov-09 20:13 
GeneralRe: Image comparison - How to read an image so you can compare pixels? Pin
«_Superman_»19-Nov-09 20:15
professional«_Superman_»19-Nov-09 20:15 
GeneralRe: Image comparison - How to read an image so you can compare pixels? Pin
justabeagle19-Nov-09 21:11
justabeagle19-Nov-09 21:11 
GeneralRe: Image comparison - How to read an image so you can compare pixels? Pin
LunaticFringe20-Nov-09 1:30
LunaticFringe20-Nov-09 1:30 
GeneralRe: Image comparison - How to read an image so you can compare pixels? Pin
justabeagle20-Nov-09 11:54
justabeagle20-Nov-09 11:54 
AnswerRe: Image comparison - How to read an image so you can compare pixels? Pin
David Crow20-Nov-09 3:47
David Crow20-Nov-09 3:47 
Questiona problem about debug and release Pin
vctrlao19-Nov-09 18:24
vctrlao19-Nov-09 18:24 
AnswerRe: a problem about debug and release Pin
Cedric Moonen19-Nov-09 20:14
Cedric Moonen19-Nov-09 20:14 
GeneralRe: a problem about debug and release Pin
vctrlao19-Nov-09 20:28
vctrlao19-Nov-09 20:28 
GeneralRe: a problem about debug and release Pin
Cedric Moonen19-Nov-09 20:36
Cedric Moonen19-Nov-09 20:36 
Questiondifficulty getting Client rect Pin
doug2519-Nov-09 18:02
doug2519-Nov-09 18:02 
AnswerRe: difficulty getting Client rect Pin
Sebin Francis19-Nov-09 18:32
Sebin Francis19-Nov-09 18:32 
GeneralRe: difficulty getting Client rect Pin
doug2519-Nov-09 19:01
doug2519-Nov-09 19:01 
QuestionRe: difficulty getting Client rect Pin
David Crow20-Nov-09 3:51
David Crow20-Nov-09 3:51 

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.