X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 08 Oct 2012 01:23 AM by  anon
IDL regress problem
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
08 Oct 2012 01:23 AM
    When I am using IDL regress function like this: result=regress(image1,image,sigma=sigma,const=const,measure_errors=measure_errors) It returns that: REGRESS: X and Y have incompatible dimensions. However,both image and image1 have same dimension(1*267*367). So I do not know where is the way out? Or maybe such dimension is too big to regress?

    Deleted User



    New Member


    Posts:20
    New Member


    --
    08 Oct 2012 07:29 AM
    I think it's because image and image1 should NOT have the exact same dimensions. This is what the help file says about it: X An Nterms by Npoints array of independent variable data, where Nterms is the number of coefficients (independent variables) and Npoints is the number of samples. Y An Npoints-element vector of dependent variable points. So X can be an array like your image, but Y needs to be a vector with a compatible dimension. The function REFORM() can change a part of your image to the desired vector. Cheers, Wouter
    You are not authorized to post a reply.