Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Extracting data from the webpages using MFC Pin
Rajesh R Subramanian13-Oct-09 4:46
professionalRajesh R Subramanian13-Oct-09 4:46 
AnswerRe: Extracting data from the webpages using MFC Pin
David Crow13-Oct-09 3:46
David Crow13-Oct-09 3:46 
GeneralRe: Extracting data from the webpages using MFC Pin
NaveenHS15-Oct-09 1:21
NaveenHS15-Oct-09 1:21 
AnswerRe: Extracting data from the webpages using MFC Pin
msn9213-Oct-09 14:50
msn9213-Oct-09 14:50 
QuestionLink error [modified] Pin
ratprita12-Oct-09 23:46
ratprita12-Oct-09 23:46 
QuestionRe: Link error Pin
CPallini13-Oct-09 0:11
mveCPallini13-Oct-09 0:11 
AnswerRe: Link error Pin
Cedric Moonen13-Oct-09 0:20
Cedric Moonen13-Oct-09 0:20 
Questionfast fast fast Pin
__erfan__12-Oct-09 22:43
__erfan__12-Oct-09 22:43 
hi.
i am writing a video processing application. at first i tried to use OpenCV and it was greate as it had very high performance. but i need to implement some functions by myself and i am doing this. but the main peroblem is the "performance". for example, i used the cvSub(...) funcation to subtract two 2D arrays. and then i tried to do this with a simple "for loop". the calculation times are shown below:

openCV : 0.135496 ms
mycode : 0.376614 ms

and i ran the program several times and the result was the same.
so i am here to ask :
do you have any idea for performing the task as fast as OpenCV?

part of my code :

double t2;
printf("-----cvSub on cvMat------\n");
for(int i=0; i<5; i++)
{
	t2 = (double)cvGetTickCount();
	cvSub(mat1, mat2, mat3, 0);
	t2 = (double)cvGetTickCount() - t2;
	printf( "detection time = %gms\n", t2/((double)cvGetTickFrequency()*1000.) );
}
printf("-----sub on 2D array------\n");
for(int i=0; i<5; i++)
{
	t2 = (double)cvGetTickCount();
        for(int j=0; j<240; j++)
	{
		for(int k=0; k<320; k++)
		{
			m3[j][k] = m1[j][k]-m2[j][k];	
		}
	}
	t2 = (double)cvGetTickCount() - t2;
	printf( "detection time = %gms\n", t2/((double)cvGetTickFrequency()*1000.) );
}


each method is performed 5 times to get the mean time
AnswerRe: fast fast fast Pin
CPallini12-Oct-09 22:57
mveCPallini12-Oct-09 22:57 
GeneralRe: fast fast fast Pin
__erfan__12-Oct-09 23:09
__erfan__12-Oct-09 23:09 
GeneralRe: fast fast fast Pin
CPallini13-Oct-09 0:01
mveCPallini13-Oct-09 0:01 
AnswerRe: fast fast fast Pin
Rajesh R Subramanian12-Oct-09 23:05
professionalRajesh R Subramanian12-Oct-09 23:05 
GeneralRe: fast fast fast Pin
__erfan__12-Oct-09 23:12
__erfan__12-Oct-09 23:12 
AnswerRe: fast fast fast Pin
Rolf Kristensen13-Oct-09 0:07
Rolf Kristensen13-Oct-09 0:07 
JokeRe: fast fast fast Pin
CPallini13-Oct-09 0:14
mveCPallini13-Oct-09 0:14 
GeneralRe: fast fast fast Pin
__erfan__13-Oct-09 0:27
__erfan__13-Oct-09 0:27 
QuestionStored Procedure Pin
MsmVc12-Oct-09 22:14
MsmVc12-Oct-09 22:14 
AnswerRe: Stored Procedure Pin
Rajesh R Subramanian12-Oct-09 22:16
professionalRajesh R Subramanian12-Oct-09 22:16 
GeneralRe: Stored Procedure Pin
MsmVc12-Oct-09 22:19
MsmVc12-Oct-09 22:19 
Questionhow to caputre screen including movie play ? Pin
rambojanggoon12-Oct-09 21:19
rambojanggoon12-Oct-09 21:19 
AnswerRe: how to caputre screen including movie play ? Pin
Rajesh R Subramanian12-Oct-09 21:25
professionalRajesh R Subramanian12-Oct-09 21:25 
AnswerRe: how to caputre screen including movie play ? Pin
Hans Dietrich12-Oct-09 23:58
mentorHans Dietrich12-Oct-09 23:58 
AnswerRe: how to caputre screen including movie play ? Pin
kilt13-Oct-09 2:14
kilt13-Oct-09 2:14 
QuestionEvents waiting on c++ Pin
shiranraviv12-Oct-09 20:42
shiranraviv12-Oct-09 20:42 
AnswerRe: Events waiting on c++ Pin
CPallini12-Oct-09 21:03
mveCPallini12-Oct-09 21:03 

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.