From: Lauren on
I tried almost everything, but with no success. Any ideas ?
Here's the link for the formula in a jpg format :

http://forum.bgu.co.il/uploads/monthly_06_2010/post-24033-12765479851708.jpg

Thank you
From: TideMan on
On Jun 15, 4:57 pm, Lauren <laureng...(a)gmail.com> wrote:
> I tried almost everything, but with no success. Any ideas ?
> Here's the link for the formula in a jpg format :
>
> http://forum.bgu.co.il/uploads/monthly_06_2010/post-24033-12765479851...
>
> Thank you

Try using the numerator as the first argument and the denominator as
the second argument.
From: Bruno Luong on
"Lauren Gavy" <laurengavy(a)gmail.com> wrote in message <hv70o0$2qs$1(a)fred.mathworks.com>...
> I tried almost everything, but with no success. Any ideas ?
> Here's the link for the formula in a jpg format :
>
> http://forum.bgu.co.il/uploads/monthly_06_2010/post-24033-12765479851708.jpg
>
> Thank you

Try

theta = 0.5*atan2(2*I11, I20-I02)

Read the doc is also sometime helpful.

Bruno
From: Lauren Gavy on
"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hv71vc$mgu$1(a)fred.mathworks.com>...
> "Lauren Gavy" <laurengavy(a)gmail.com> wrote in message <hv70o0$2qs$1(a)fred.mathworks.com>...
> > I tried almost everything, but with no success. Any ideas ?
> > Here's the link for the formula in a jpg format :
> >
> > http://forum.bgu.co.il/uploads/monthly_06_2010/post-24033-12765479851708.jpg
> >
> > Thank you
>
> Try
>
> theta = 0.5*atan2(2*I11, I20-I02)
>
> Read the doc is also sometime helpful.
>
> Bruno

Thank you for your answer and I'm sorry for the double post. I read the doc but couldn't get it to work, It's the exact thing I tried. The error I'm getting is:

??? Undefined function or method 'atan2' for input arguments of type 'uint8'.

Any idea ?
From: Bruno Luong on
"Lauren Gavy" <laurengavy(a)gmail.com> wrote in message <hv7315$rie$1(a)fred.mathworks.com>...
> "Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hv71vc$mgu$1(a)fred.mathworks.com>...
> > "Lauren Gavy" <laurengavy(a)gmail.com> wrote in message <hv70o0$2qs$1(a)fred.mathworks.com>...
> > > I tried almost everything, but with no success. Any ideas ?
> > > Here's the link for the formula in a jpg format :
> > >
> > > http://forum.bgu.co.il/uploads/monthly_06_2010/post-24033-12765479851708.jpg
> > >
> > > Thank you
> >
> > Try
> >
> > theta = 0.5*atan2(2*I11, I20-I02)
> >
> > Read the doc is also sometime helpful.
> >
> > Bruno
>
> Thank you for your answer and I'm sorry for the double post. I read the doc but couldn't get it to work, It's the exact thing I tried. The error I'm getting is:
>
> ??? Undefined function or method 'atan2' for input arguments of type 'uint8'.

Convert your image to *double* before doing any computation.

Im = imread(somefile);
Im = double(Im);
% ...

% Bruno