السلام عليكم ورحمة الله وبركاته
انا طالب في الهندسة المساحيه ،، وطلب مننآ دكتور كتابة هذي المصفوفة بآي لغة برمجة c++ او الفيجوال
وياليت اذا احد يقدر يساعدني ويكتب البرنامج مع شرح بسيط
وهذآ نص الوآجـب واضفت بعض القوانين اللي راح تفيدكم ،،
-----------
HW1
86 83 94 98 89 82 71 67 72 69
84 87 90 88 82 77 77 74 65 70
85 90 96 91 81 80 83 73 80 73
88 92 95 88 80 76 71 82 90 82
89 95 97 92 84 79 75 86 92 86
94 99 104 97 89 85 80 91 99 91
93 93 95 93 87 82 82 79 80 79
96 99 102 96 90 85 88 78 85 78
98 99 101 103 102 98 94 90 88 85
100 101 102 107 104 100 97 95 93 91
101 103 105 105 103 108 104 101 98 94
99 97 98 99 100 102 101 99 97 94
The above 12*10 matrix was converted from a subset of an image. The values you get in the matrix represent the gray values at each location. The image has been quantized using a 7-bit binary computer coding scale .
Write a computer program that reads this matrix (image) and calculates the following :
# The mean gray value and whether the image is considered light or dark image .
m=1MNx=1Ny=1Nfx,y, N:rows , M columns
# The variance of gray value .
var=1MN . x=1Ny=1M(fx,y-m)2 , m:mean
The values and locations of the maximum and minimum gray value in the image .#
Obtain the negative of the image by getting the negative of the top left 3*3 matrix .#
-----------
آرجو آفآدتي ،، وآكون لكم شآكرآ ،،
بأنتظآركم ضروري ..