Click here to Skip to main content
15,885,366 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to write a function in a file at binary level (after compilation) Pin
CPallini11-Jan-10 6:52
mveCPallini11-Jan-10 6:52 
AnswerRe: how to write a function in a file at binary level (after compilation) Pin
Bram van Kampen11-Jan-10 16:01
Bram van Kampen11-Jan-10 16:01 
Questiondetect a hole in a binary image Pin
franckesh11-Jan-10 5:31
franckesh11-Jan-10 5:31 
AnswerRe: detect a hole in a binary image Pin
Nelek11-Jan-10 5:52
protectorNelek11-Jan-10 5:52 
GeneralRe: detect a hole in a binary image Pin
franckesh11-Jan-10 5:59
franckesh11-Jan-10 5:59 
GeneralRe: detect a hole in a binary image Pin
Nelek11-Jan-10 6:23
protectorNelek11-Jan-10 6:23 
AnswerRe: detect a hole in a binary image Pin
Chris Losinger11-Jan-10 7:23
professionalChris Losinger11-Jan-10 7:23 
AnswerRe: detect a hole in a binary image Pin
Rozis11-Jan-10 15:12
Rozis11-Jan-10 15:12 
maybe i can help you.

You will have to scan your image pixel by pixel. Getpixel() is one approach but is not very quick. The second approach is to get a pointer to the pixeldata. I'm not sure what you want to do with the results but one of the things you could do is to create a region (a clipping area) of those holes. Weaponed with that you could fill it or do everything you like. A region will not give you a direct insight of the size (because it may be a complex (non-rectangular) object) but -although unknown- holds a representation of the hole.

If you feel this approach will help you feel free to send me an email - I can give you an algorithm to create a region from a complex figure.

Rozis
AnswerRe: detect a hole in a binary image Pin
Bram van Kampen11-Jan-10 16:15
Bram van Kampen11-Jan-10 16:15 
GeneralRe: detect a hole in a binary image Pin
franckesh11-Jan-10 23:19
franckesh11-Jan-10 23:19 
AnswerRe: detect a hole in a binary image Pin
Shiju PK12-Jan-10 0:56
professionalShiju PK12-Jan-10 0:56 
AnswerRe: detect a hole in a binary image Pin
Alan Balkany12-Jan-10 5:20
Alan Balkany12-Jan-10 5:20 
QuestionAdding a browse button internal to an Edit Control Pin
maycockt11-Jan-10 3:54
maycockt11-Jan-10 3:54 
AnswerRe: Adding a browse button internal to an Edit Control Pin
«_Superman_»11-Jan-10 20:22
professional«_Superman_»11-Jan-10 20:22 
QuestionPlaying a MIDI note: is there an alternative to mmsystem.h/winmm.dll? Pin
AnatolyGorbunov11-Jan-10 3:50
AnatolyGorbunov11-Jan-10 3:50 
AnswerRe: Playing a MIDI note: is there an alternative to mmsystem.h/winmm.dll? Pin
AnatolyGorbunov14-Jan-10 20:18
AnatolyGorbunov14-Jan-10 20:18 
QuestionOrder in which the SDI Class is called Pin
Chandrasekharan P11-Jan-10 3:02
Chandrasekharan P11-Jan-10 3:02 
AnswerRe: Order in which the SDI Class is called Pin
Richard MacCutchan11-Jan-10 3:27
mveRichard MacCutchan11-Jan-10 3:27 
AnswerRe: Order in which the SDI Class is called Pin
fkeujjpdc13-Jan-10 1:30
fkeujjpdc13-Jan-10 1:30 
Questioncreating simple dilog box without using resource script Pin
kir_MFC10-Jan-10 22:54
kir_MFC10-Jan-10 22:54 
AnswerRe: creating simple dilog box without using resource script Pin
Richard MacCutchan10-Jan-10 23:02
mveRichard MacCutchan10-Jan-10 23:02 
AnswerRe: creating simple dilog box without using resource script Pin
Adam Roderick J10-Jan-10 23:04
Adam Roderick J10-Jan-10 23:04 
AnswerRe: creating simple dilog box without using resource script Pin
Nelek10-Jan-10 23:54
protectorNelek10-Jan-10 23:54 
AnswerRe: creating simple dilog box without using resource script Pin
KingsGambit11-Jan-10 0:55
KingsGambit11-Jan-10 0:55 
Questioncreating modless dialog box dynamically Pin
kir_MFC10-Jan-10 20:25
kir_MFC10-Jan-10 20:25 

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.