CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: nihad

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    1,671

    Difference between two string.

    I want to compare two string, and want to see differeince in int form. For example,



    string first_string="0002AE1";
    string second_string="0002AE2";


    How can i calculate difference between...
  2. Replies
    1
    Views
    1,455

    How can I calculate PCA?

    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++)
    ...
  3. Replies
    3
    Views
    2,233

    Re: Output error dft() function.

    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...
  4. Replies
    3
    Views
    2,233

    Output error dft() function.

    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] &&...
  5. Replies
    4
    Views
    5,328

    Re: Question about histogram output.

    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.
  6. Replies
    4
    Views
    5,328

    Re: Question about histogram output.

    Here is the solution:
    Function prototype would be
    vector<double>three_dimensional_shape_retreival_Hough_Transform:: histogram_creation(vector<float> input_vector) instead of...
  7. Replies
    4
    Views
    5,328

    Question about histogram output.

    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...
  8. Replies
    4
    Views
    5,021

    Re: How Can I Run OpenCV Program?

    Thnx. I solved the problem.
    Source: perfectly fine link:
    http://blog.hcilab.org/bastian/2012/06/installing-opencv-2-4-windows-7-visual-studio/
  9. Replies
    4
    Views
    5,021

    Re: How Can I Run OpenCV Program?

    Thnx. I solved the problem.
    Source: perfectly fine link:
    http://blog.hcilab.org/bastian/2012/06/installing-opencv-2-4-windows-7-visual-studio/
  10. Replies
    4
    Views
    5,021

    How Can I Run OpenCV Program?

    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...
  11. Re: How can I create histogram from a set of values in OpenCV?

    I tried in this way , but output is not acceptable.


    int main(.......)
    {
    ......................
    double histogram_sample[1][6]={1.0,2.0,3.0,4.0,1.0,2.0};

    Mat...
  12. How can I create histogram from a set of values in OpenCV?

    I have a text file which consist of several values. These values represent distance from origin to any point in the triangle. How can I create histogram from these values? Is there any functions in...
  13. Replies
    3
    Views
    5,282

    Re: How can insert value in structure vector?

    I solved the problem. Here is the solution:


    Hough_Transform_3D_Accumulator temp;

    temp.i = i;

    temp.j = j;

    temp.k = k;
  14. Replies
    3
    Views
    5,282

    How can insert value in structure vector?

    Here I have given my sample code, but it gave error. How can insert value in structure vector?


    struct Hough_Transform_3D_Accumulator
    {
    long int i;
    long int j;
    long int k;
    long int...
  15. Re: How can I compare two histograms in OpenCV c++?

    Anyway, I have solved the problem. I include "opencv_imgproc220d.lib" in additional library dependencies in VC++2010.
  16. How can I compare two histograms in OpenCV c++?

    I am tying to compare two histograms, but it gives error. Here I have given my code, histogram file and error message.
    Histogram file 3*5 matrix(output_test.txt):

    1 2 3 4 5
    5 2 1 4 2
    2 1 2 4 2...
  17. Re: error C2440: '=' : cannot convert from 'const char *' to 'char *

    Ya, I should include some code for checking.
  18. Re: error C2440: '=' : cannot convert from 'const char *' to 'char *

    Yes. It would be reader.read_off(mesh, input_file_name.c_str()) instead of argv[2]=input_file_name.c_str().
  19. Re: error C2440: '=' : cannot convert from 'const char *' to 'char *

    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();
  20. Re: error C2440: '=' : cannot convert from 'const char *' to 'char *

    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...
  21. error C2440: '=' : cannot convert from 'const char *' to 'char *

    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();...
Results 1 to 21 of 21





Click Here to Expand Forum to Full Width

Featured