Thread: Error going in a function

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jun 2013
    Posts
    33

    Error going in a function

    Hi I have no error compiling, but running my project it stops before entering a function and debugging I have an error about Segmentation fault. The function:

    Code:
    1 2 3 4 5 6 7
    Mat logGabor(matriz filter,Mat filter,double r_o,double theta_o,double sigma_theta, matriz radius,matriz theta,int cols,int rows,double sigma_r,int *padSize){ Mat rpad; int k=*padSize; printf("Welcome to the function"); //Here the error ...
    More info: I created the matriz as : typedef double** matriz;
    and a createmat function that give back a double** and in this function I allocate space for matriz and works. In the main:

    Code:
    1 2 3 4 5
    Mat chr-Rpad[4][5]; //chrOrient=4;chrScales=5 for(int i_or=1;i_or<chrOrient;i_or++){ for(int i_sc=1;i_sc<chrScales;i_sc++){ //some math calculation chrRpad[i_or-1][i_sc-1]=abs(logGabor(filter,imftt2,r_o,theta_o,sigma_theta,radius,theta,cols,rows,sigma_r,padSize));
    Last edited by Elvio Esposito; 07-02-2013 at 07:29 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 10-23-2012, 02:37 PM
  2. Error "in function 'main' syntax error before 'int' Help Please
    By blackhat11907 in forum C Programming
    Replies: 5
    Last Post: 08-20-2011, 07:05 PM
  3. Replies: 8
    Last Post: 07-08-2011, 01:16 PM
  4. Error: _ defined as a function returning a function?
    By Jardon in forum C Programming
    Replies: 15
    Last Post: 07-29-2009, 11:53 AM
  5. function calling within another function error
    By bazzano in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 01:40 AM