Click here to Skip to main content
16,012,223 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: template class member function - returing pointer to the class Pin
Beau Skinner25-Jun-04 20:20
Beau Skinner25-Jun-04 20:20 
QuestionMore than 30ms for very basic img proc operations? Why? Pin
redmop25-Jun-04 1:17
redmop25-Jun-04 1:17 
AnswerRe: More than 30ms for very basic img proc operations? Why? Pin
Beau Skinner25-Jun-04 1:41
Beau Skinner25-Jun-04 1:41 
AnswerRe: More than 30ms for very basic img proc operations? Why? Pin
LittleYellowBird25-Jun-04 2:37
LittleYellowBird25-Jun-04 2:37 
AnswerRe: More than 30ms for very basic img proc operations? Why? Pin
Rick York25-Jun-04 6:26
mveRick York25-Jun-04 6:26 
AnswerRe: More than 30ms for very basic img proc operations? Why? Pin
vladfein25-Jun-04 8:08
vladfein25-Jun-04 8:08 
AnswerRe: More than 30ms for very basic img proc operations? Why? Pin
Christopher Lloyd25-Jun-04 8:51
Christopher Lloyd25-Jun-04 8:51 
AnswerRe: More than 30ms for very basic img proc operations? Why? Pin
redmop27-Jun-04 4:25
redmop27-Jun-04 4:25 
Hi again,

first of all I want to say I'm very thankful to all of you for your tips, opinions and suggestions, especially the comment from A. Pentland was very plausible for me.

Instead of answering each of you I'll do it all together here.


1) Amount of data that is proccessed and what exactly is he doing?
Yes I could reduce the amount of data but I wanted to simulate the "worst case" first, and that means this high resolution and using all colour channels and 30frames per sec

(I'm quite sure that I wont reach that aim Smile | :) . I'm particulary interested in the face and eye region for gaze estimation, therefore I need high resolution images to achieve

some accuracy. A very basic thing is to blur the input image first (to get rid of noise). Using a 3x3 filter I would need 12 additions and one divions for each colour channel.

Ok in this case the divisor can be a const value but for other things like normalizing the intensity I would use lets say the average intensity of the whole image. And these

are just basic things, of course I need more complicated methods to detect the face/eyes/iris/pupil etc.

2) Looping code:
--------------------------snip--------------------------------------------------------------------------------------------
// m_pVectorIn is the pointer to the bitmap data
// m_pVectorOut is the pointer to data of a different bitmap
//m_nWidth = 3 * m_iWidth // and m_iWidth is the image width

unsigned char* pSource = m_pVectorIn + m_nWidth;
unsigned char* pDrain = m_pVectorOut + m_nWidth;


for(int y=1;y
GeneralRe: More than 30ms for very basic img proc operations? Why? Pin
LittleYellowBird27-Jun-04 23:53
LittleYellowBird27-Jun-04 23:53 
AnswerRe: More than 30ms for very basic img proc operations? Why? Pin
pavanbabut28-Jun-04 8:01
pavanbabut28-Jun-04 8:01 
General[Microsoft][ODBC Microsoft Access Driver] Couldn't use '(unknown)'; file already in use. Pin
si_6925-Jun-04 1:14
si_6925-Jun-04 1:14 
Generallarge arrays, stack overflow, MFC Pin
hdaly25-Jun-04 0:30
hdaly25-Jun-04 0:30 
GeneralRe: large arrays, stack overflow, MFC Pin
User 665825-Jun-04 0:40
User 665825-Jun-04 0:40 
GeneralRe: large arrays, stack overflow, MFC Pin
hdaly25-Jun-04 0:56
hdaly25-Jun-04 0:56 
GeneralRe: large arrays, stack overflow, MFC Pin
David Crow25-Jun-04 2:27
David Crow25-Jun-04 2:27 
GeneralStupid question Pin
Jonathan [Darka]25-Jun-04 0:30
professionalJonathan [Darka]25-Jun-04 0:30 
GeneralRe: Stupid question Pin
V.25-Jun-04 1:46
professionalV.25-Jun-04 1:46 
GeneralRe: Stupid question Pin
Henry miller25-Jun-04 3:25
Henry miller25-Jun-04 3:25 
GeneralRe: Stupid question Pin
Jonathan [Darka]25-Jun-04 4:22
professionalJonathan [Darka]25-Jun-04 4:22 
GeneralCoUninitialize Problem Pin
ITMan24-Jun-04 22:42
ITMan24-Jun-04 22:42 
QuestionHow to call a dialog box on Help button on a property sheet.? Pin
Rajesh_K_Sharma24-Jun-04 21:17
Rajesh_K_Sharma24-Jun-04 21:17 
AnswerRe: How to call a dialog box on Help button on a property sheet.? Pin
V.24-Jun-04 21:21
professionalV.24-Jun-04 21:21 
AnswerRe: How to call a dialog box on Help button on a property sheet.? Pin
David Crow25-Jun-04 2:33
David Crow25-Jun-04 2:33 
GeneralProblem in release mode Pin
nnvidya24-Jun-04 20:23
nnvidya24-Jun-04 20:23 
GeneralRe: Problem in release mode Pin
David Crow25-Jun-04 2:40
David Crow25-Jun-04 2:40 

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.