Jump to content

Check out our Community Blogs


Member Since 18 Feb 2008
Offline Last Active Jan 10 2011 02:21 PM

Posts I've Made

In Topic: C++ String Manipulation

23 August 2010 - 08:29 AM

you can use the find function provided in string, to search for the index of the comma then make to sub strings one 0 to comma position -1 and the other from the comma +1 to the end.
find returns the position of the character if found else it returns a value = to string::npos.
int location = name.find(",",0);//start search from 0
if(location != string::npos) // do what u want

In Topic: Real-time blur algorithm

20 June 2010 - 05:43 AM

cause i was thinking if you take the sequence and save only you may paralleliz the processing so that for example 3 processes running, 1 process as the master that sends the frame to other processes and each process takes a frame to process-different frames- and send the result back to the master who saves them to the disk, that if the average didn't work for you :).
but the problem with parallel is that there will be some communication overhead between processes but you will be able to process several frames at a time.

In Topic: Real-time blur algorithm

20 June 2010 - 04:29 AM

i didn't try Gaussian in blurring but i tried the average filter, it's applied by convolution, the filter is matrix of 1's and multiply each element in the filter with it's corresponding element in the picture then sum and divide by the size of the filter and that will be the middle element and also you can avoid the multiplication by conditions in the code, i think the little improvement over the Gaussian would be not using the powering and the too much multiplication.
i have a question: do you have to display the blurred frames after the operation or they are captured and processed and stored?

In Topic: Post Exercises Here

13 June 2010 - 03:14 AM

the set is given as a vector of elements or is it just 1 integer e.g 10 so the set is the elements from 1-10 ?

In Topic: Reading from a file

11 June 2010 - 07:15 AM

you can use the seek(point to go) u can use it as fseek(FILE,int point,int starting point) in using c or ifstream in;in.seekg(int); then read

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download