March 23rd, 2013 10:51 PM
I am trying to use PCA, but it gives memory access violation error. Here is my sample code.
int main(...)
{
.................
vector<float>input_array;
for(i=0;i<number_of_lines;i++)
...
March 21st, 2013 06:30 AM
Revised code would be
int main(.....)
{
vector<double>pdf_vector;
//read data from file and put it in pdf_vector.
vector<double>all_vector;
Mat dft_input_vector(pdf_vector);
Mat...
March 21st, 2013 05:44 AM
I am trying to use following code, but it gives error. Error message is like : OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)si ze.p[0] &&...
March 18th, 2013 05:24 AM
I am using OpenCV library.
"images – Source arrays. They all should have the same depth, CV_8U or CV_32F"
so vector<double> is not a valid input. vector<float> should do.
March 16th, 2013 11:18 PM
Here is the solution:
Function prototype would be
vector<double>three_dimensional_shape_retreival_Hough_Transform:: histogram_creation(vector<float> input_vector) instead of...
March 15th, 2013 11:25 PM
I have following code to create histogram, but it gave wrong output. In the program input_vector read 100 double numbers. I want to create a histogram with bin size=5. Output is [0;0;0;0;0]. Can...
March 15th, 2013 08:03 AM
Thnx. I solved the problem.
Source: perfectly fine link:
http://blog.hcilab.org/bastian/2012/06/installing-opencv-2-4-windows-7-visual-studio/
March 15th, 2013 08:01 AM
Thnx. I solved the problem.
Source: perfectly fine link:
http://blog.hcilab.org/bastian/2012/06/installing-opencv-2-4-windows-7-visual-studio/
March 15th, 2013 07:29 AM
I am trying to run an OpenCV program from command line, but it gave error like "The program can`t start because opencv_220d.dll is missing from your computer." Try reinstalling the program to fix...
February 3rd, 2013 09:21 AM
Ya, I should include some code for checking.
February 3rd, 2013 08:50 AM
Yes. It would be reader.read_off(mesh, input_file_name.c_str()) instead of argv[2]=input_file_name.c_str().
February 3rd, 2013 08:38 AM
Finally, I did it. It will be writer.write_off(mesh, output_file_name.c_str()); instead of argv[3]= output_file_name.c_str();
February 3rd, 2013 07:33 AM
Actually this is my code: I use command line argument, argv[1] is my one of the input file name. I want to change argv[2] and argv[3] dynamically inside the for loop.
int main(int argc, char...
February 3rd, 2013 03:58 AM
Hi,
I want to do following , but it gives error C2440: '=' : cannot convert from 'const char *' to 'char *.
............
string str("VRML");
char *sss[];
sss[0]=str.c_str();...