M
MyCatAlex
Guest
I need to capture image frames from a webcam (actually two). After some search I settled on MFCapture3D3. It works as far as capturing images is concerned, however, I need numerical values of the entire image(s). There is a place in winmain.cpp called MessageLoop (it is a function) where I'm trying to get the values. It does not really work.
INT MessageLoop(HWND hwnd)
{
UINT offset = 150;
MSG msg = {0};
while (GetMessage(&msg, NULL, 0, 0))
{
for (UINT jj = 0; jj++; 150) {
std::cout << &hwnd + jj;
std::cout << " **** ";
}
std::cout << &hwnd + offset; // <== some output
std::cout << " ";
TranslateMessage(&msg);
DispatchMessage(&msg);
}
The for loop does not give me any output at all. The std::cout statement gives output but only when I move mouse cursor over the screen image which is perfect.
I would appreciate any comments as to how to improve the function, to get values from each point of the image.
Thanks - MyCatAlex
Continue reading...
INT MessageLoop(HWND hwnd)
{
UINT offset = 150;
MSG msg = {0};
while (GetMessage(&msg, NULL, 0, 0))
{
for (UINT jj = 0; jj++; 150) {
std::cout << &hwnd + jj;
std::cout << " **** ";
}
std::cout << &hwnd + offset; // <== some output
std::cout << " ";
TranslateMessage(&msg);
DispatchMessage(&msg);
}
The for loop does not give me any output at all. The std::cout statement gives output but only when I move mouse cursor over the screen image which is perfect.
I would appreciate any comments as to how to improve the function, to get values from each point of the image.
Thanks - MyCatAlex
Continue reading...