Equation with Mathlab

Good day

(D= tan- ¹ [ B1– B3] / [ 2 B2–B3–B1] (

I have this equation with three images B1, B2 and B3.
I need to show the image D.
?How can I write this with Mathlab?

Thanks alot

الصورة فى الماتلاب متغير عادى جدا يمكن اجراء جميع العمليات الحسابية عليه
وفى النهاية أجعلى قيم البيكسل كلها اعداد صحيحة

نرجو كتابة المعادلة صحيحة باستخدام خاصية ادارج كود الموجودة فى المحرر

A1=imread('/disk1/data/glans/20101014/2010 11 44/ch pdi 1.tif');
A2=imread('/disk1/data/glans/20101014/2010 11 44/ch pdi 2.tif');
A3=imread('/disk1/data/glans/20101014/2010 11 44/ch pdi 3.tif');

B1=double(A1);
B2=double(A2);
B3=double(A3);

[mx1,my1]=size(B1);
[mx2,my2]=size(B2);
[mx3,my3]=size(B3);

dd2=double(B3-B1);
dd1=double(2*B2-B3-B1);

dely=200/mx1;

for i=1:mx1
    %i
    for j=1:my1
        fd(i,j)=atan2(dd1(i,j),dd2(i,j))/(2.0*3.1415926535)*635.0;
        y(j)=(j-1)*dely;
    end
    x(i)=(i-1)*dely;

هذا حل للسؤال لا اعرف اذا كان صحيح
لانني لم افهم الحل
لم استطع استخدام خاصية ادراج كود في المرة القادمة سوف احاول
مع جزيل الشكر

يرجى ارفاق هذه الصور

A1=imread('/disk1/data/glans/20101014/2010 11 44/ch pdi 1.tif');
A2=imread('/disk1/data/glans/20101014/2010 11 44/ch pdi 2.tif');
A3=imread('/disk1/data/glans/20101014/2010 11 44/ch pdi 3.tif');

لم استطع ارفاق الصور اعتقد لان حجم الصورة الواحدة كبير

استخدمى مركز الرفع بالمنتدى
http://www.almohandes.org/upload

I can not because my pictures 30 MB can I send to you with e-mail

يمكنك رفعها على أحد مراكز الرفع
على سبيل المثال
www.fileflyer.com

I send them here
http://www.fileflyer.com/uploadsuccess.aspx?uid=YIr0UAh&removeid=ylA33BV

http://www.fileflyer.com/view/YIr0UAh

أين باقى الصور
A1=imread(‘/disk1/data/glans/20101014/2010 11 44/ch pdi 1.tif’);
A2=imread(‘/disk1/data/glans/20101014/2010 11 44/ch pdi 2.tif’);
A3=imread(‘/disk1/data/glans/20101014/2010 11 44/ch pdi 3.tif’);

http://www.fileflyer.com/view/KtvMICQ

http://www.fileflyer.com/view/4UJ7VBn

I hope now all pictures sent

I sent the pictures why there is no answer
?

لقد قمت بتشغيل البرنامج الاتى بدون اى مشاكل
ممكن توضحى ما الذى تحاولين القيام به ؟؟

A1=imread('A1.tif');
A2=imread('A2.tif');
A3=imread('A3.tif');

B1=double(A1);
B2=double(A2);
B3=double(A3);

[mx1,my1]=size(B1);
[mx2,my2]=size(B2);
[mx3,my3]=size(B3);

dd2=double(B3-B1);
dd1=double(2*B2-B3-B1);

dely=200/mx1;

for i=1:mx1
    %i
    for j=1:my1
        fd(i,j)=atan2(dd1(i,j),dd2(i,j))/(2.0*3.1415926535)*635.0;
        y(j)=(j-1)*dely;
    end
    x(i)=(i-1)*dely;
end

OK.
I have three pictures with different light, may be you cannot see the different of these pictures but I must see the picture D which displays the figure some I need to see. I do not know where the wrong, with the wavelengths or with Matlab is because I do not understand this program.
If you help me that I understand this program may be I can see where the wrong is.

بالنسبة للبرنامج المذكور فهو بسيط مجرد عمليات طرح وايجاد مكوس التان atan2
وفى الحقيقة لم أفهم ما المطلوب عمله فى البرنامج وهذه الصورة الناتجة

السلام عليكم
لماذا استخدم
dely
كمتغير وتم تقسيم 200 على عدد البيكسلات

وماهو الفلتر المناسب لهذه الصورة لربما اذا استخدمنا فلتر مناسب سوف نحصل على الصورة المطلوبة
ولاحظ استخدم عدة مرات هذا المتغير
هل من الممكن ان نترك هذا البرنامج ونكتب برنامج جديد مع فلتر مناسب
مع جزيل الشكر ووافر التقدير
وانا اسفة لان بعض الاحيان لا استطيع ان اكتب عربي مع الحاسبة التي استخدمها في مكان الدراسة