This document provides an overview of mathematical techniques for image processing. It discusses grayscale and color images, and how they can be represented as matrices. Methods for analyzing image data statistically, such as histograms and measures of center and spread, are presented. Working with images in MATLAB is demonstrated, including functions for reading, displaying, and extracting color channels of images. Different color models like RGB and YCbCr are described.
The name MATLAB stands for MATrix LABoratory.MATLAB is a high-performance language for technical computing.
It integrates computation, visualization, and programming environment. Furthermore, MATLAB is a modern programming language environment: it has sophisticated data structures, contains built-in editing and debugging tools, and supports object-oriented programming.
These factor make MATLAB an excellent tool for teaching and research.
The name MATLAB stands for MATrix LABoratory.MATLAB is a high-performance language for technical computing.
It integrates computation, visualization, and programming environment. Furthermore, MATLAB is a modern programming language environment: it has sophisticated data structures, contains built-in editing and debugging tools, and supports object-oriented programming.
These factor make MATLAB an excellent tool for teaching and research.
Summarizing Data : Listing and Grouping pdfJustynOwen
Introduction
Descriptive Statistics describe basic features of the data gathered from an experimental study in various ways.
They provide simple summaries about the sample via graphs and numbers, mainly measures of center and variation.
Together with graphics analysis (histograms, bar plots, pie-charts), they are the cornerstone of quantitative data analysis.
Tables (frequency distributions, stem-and-leaf plots, …) that summarize the data.
Graphical representations of the data (histograms, bar plots, pie-charts).
Summary statistics (numbers) which summarize the data
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Summarizing Data : Listing and Grouping pdfJustynOwen
Introduction
Descriptive Statistics describe basic features of the data gathered from an experimental study in various ways.
They provide simple summaries about the sample via graphs and numbers, mainly measures of center and variation.
Together with graphics analysis (histograms, bar plots, pie-charts), they are the cornerstone of quantitative data analysis.
Tables (frequency distributions, stem-and-leaf plots, …) that summarize the data.
Graphical representations of the data (histograms, bar plots, pie-charts).
Summary statistics (numbers) which summarize the data
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Executive Directors Chat Leveraging AI for Diversity, Equity, and InclusionTechSoup
Let’s explore the intersection of technology and equity in the final session of our DEI series. Discover how AI tools, like ChatGPT, can be used to support and enhance your nonprofit's DEI initiatives. Participants will gain insights into practical AI applications and get tips for leveraging technology to advance their DEI goals.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
Safalta Digital marketing institute in Noida, provide complete applications that encompass a huge range of virtual advertising and marketing additives, which includes search engine optimization, virtual communication advertising, pay-per-click on marketing, content material advertising, internet analytics, and greater. These university courses are designed for students who possess a comprehensive understanding of virtual marketing strategies and attributes.Safalta Digital Marketing Institute in Noida is a first choice for young individuals or students who are looking to start their careers in the field of digital advertising. The institute gives specialized courses designed and certification.
for beginners, providing thorough training in areas such as SEO, digital communication marketing, and PPC training in Noida. After finishing the program, students receive the certifications recognised by top different universitie, setting a strong foundation for a successful career in digital marketing.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
Azure Interview Questions and Answers PDF By ScholarHat
Basics of Digital Images
1. Mathematical Techniques
of Image Processing
Master of Applied Mathematics
Department of Mathematics
College of Science - University of Baghdad
Saad Al-Momen
1
2.
3. Grayscale Digital Images
01
Working with Images in MATLAB
02
Images and Statistical Description of Quantitative Data
Image Histograms
Measures of Center and Spread
03
Color Images and Color Spaces
04
5. • A gray scale digital image is just an
M N matrix of discrete pixel values.
Grayscale Digital Images
𝐴 =
𝑎1,1 𝑎1,2
𝑎2,1 𝑎2,2
⋯
𝑎1,𝑁−1 𝑎1,𝑁
𝑎2,𝑁−1 𝑎2,𝑁
⋮ ⋱ ⋮
𝑎𝑀−1,1 𝑎𝑀−1,2
𝑎𝑀,1 𝑎𝑀,2
⋯
𝑎𝑀−1,𝑁−1 𝑎𝑀−1,𝑁
𝑎𝑀,𝑁−1 𝑎𝑀,𝑁
• The maximal light intensity is
represented by the pixel value of 255
• The absence of light is represented
by the pixel value 0
• The shades of gray thus represented
by the values between 0 and 255
223 111
127 255
159 47
63 143
191 79
95 175
207 15
31 239
⇔
7. MATLAB
Implementation
• The MATLAB function imread is used to
read the image from a graphics file of any
of a large number of common formats
>> A=imread(‘trees.tif’);
• To know the size of the image we use the
MATLAB function size
>> [M,N]=size(A)
For example, if it return the values M=258
and N=350, that indicates that the image has
dimensions 258350.
• Entering the MATLAB function
>> class(A)
into the command line returns the value
“uint8”, which tells us that the pixel values are
represented by 8-bit unsigned integers,
providing for 28 = 256 possible shades of
gray.
8. MATLAB
Implementation
• The MATLAB function imshow is used to
display the image that we are already read
>> imshow(A)
where A is the image matrix in the “uint8”
type obtained by executing the imread
command.
9. MATLAB
Implementation
• If we just use the function imshow in its
basic form, all the pixels whose values
exceed 1.0 will be interpreted as white
and displayed accordingly.
• However, in order to properly display an
image whose matrix is of the data type
“double”, we need to modify our usage of
the imshow function by supplying the range
of the pixel values. For example, we can
use
>> imshow(A,[0,255])
• If we want MATLAB to perform floating-
point arithmetic on pixels values, we must
convert the matrix type from “uint8” to
“double” by means of the command
>> A=double(A)
10. MATLAB
Implementation
• The MATLAB function subplot enables us to
fit several images or other graphics into the
same figure. Executing the command
>> subplot(m,n,p)
divides the current figure into an mn grid
and prepares to display an object in the
position of that grid specified by p.
A=imread('coins.png');
B=imread('trees.tif');
subplot(1,2,1);
imshow(A);
subplot(1,2,2);
imshow(B);
12
1 2
12. • A matrix of a digital image may considered as a type of statistical data,
and we can analyze it with the help of statistical methods.
Image Histograms
• A common way to summarize quantitative data is by constructing
frequency distributions.
Calculate the range of the dataset (the difference between the largest and
the smallest values)
Decide on the number of bins (the number of subintervals to divide the data
into)
The subintervals are always adjacent to each other and are usually selected
to be of equal width.
Count the frequencies (the numbers of data values that fall within each
subinterval).
Dividing frequencies by the size of the data set (the total number of data
points) gives us relative frequencies.
These bins, together with the frequencies, constitute a frequency distribution
14. • An image histogram in its simplest form is a graphical representation of
the number of times each pixel value (that is, each gray level) occurs in
the image.
• By default, an image histogram has 256 bins.
Image Histograms
15. MATLAB
Implementation
• In order to display an image histogram, we
can use the MATLAB function imhist. For
example, typing
>> imhist(A);
into the command window produces a
histogram consisting of as many as 256
bars (one for each possible gray level),
where as typing in
>> imhist(A,16);
results in the histogram of the image A
using 16 bins.
17. Consider a somewhat unrealistic example of an opulent $10,000,000
mansion in the middle of a modest community of 49 other houses,
each worth about $200,000. The mean property value in the
community is
𝑦 =
$10,000,000+$200,000+⋯+$200,000
50
= $369,000 per house
which, unfortunately, is representative of neither the opulent mansion
nor of the rest of the properties. It just would not be reasonable to
claim that the average house in the community is worth $396,000.
The obvious conclusion is that if the data are skewed or contain
outliers, the mean is not a very useful measure of center of the
dataset. Instead, in such circumstances, the other measure of
average - the median – is usually used.
Measures of Center and Spread
Mean & Median
18. For example, in order to calculate
the median of the even-size data
set
{5, 1, 4, 8, 2, 6, 11, 72, 4, 7, 1,
9}
We first rearrange it in the
ascending order as
{1, 1, 2, 4, 4, 5, 6, 7, 8,
9, 11, 72}
and then observe that the average
of the two middle entries of the
list is
m =(5 +6)/2= 5.5
Which is precisely the median of
Measures of Center and Spread
Mean & Median
In order to calculate the median of
the odd-size data set
{5, 1, 4, 8, 2, 6, 17, 72, 4, 7, 10}
We first rewrite it as
{1, 2, 4, 4, 5, 6, 7, 8, 10,
17, 72}
and then observe that the middle
entry is 6, which is precisely the
median of these data.
19. We note that the
median property value
in the real estate
example we
considered earlier is
$200,000, and it is
quite reasonable to
state that the average
house in the
community is worth
that amount
20. • We could define the mainstream of a data set as its middle half –
the part of the data that falls between the thresholds for the lower
quarter and the upper quarter.
• These thresholds are called quartiles.
• The first quartile 𝑄1 is the median of the lower half of the data set.
• The third quartile 𝑄3 is the median of the upper half.
• The second quartile 𝑄2 is the median of the entire data set.
• The interquartile range
𝐼𝑄𝑅 = 𝑄3 − 𝑄1
is a meaningful measure of spread of data.
Measures of Center and Spread
The Mainstream
21. In connection with the quartiles and the interquartile range, we mention
one more concept that might prove useful in image analysis is – that
of an outlier –a value that is vastly different from most of the rest of
the data.
There exist several technical definitions of the term outlier. One of
them is the Tukey fences definition, defines an outlier to be any value
outside the range
[𝑄1 − 1.5 × 𝐼𝑄𝑅, 𝑄3 + 1.5 × 𝐼𝑄𝑅]
and a strong outlier to be any value outside the range
[𝑄1 − 3 × 𝐼𝑄𝑅, 𝑄3 + 3 × 𝐼𝑄𝑅]
Measures of Center and Spread
The Outlier
22. To find the quartiles of the familiar data set
{5, 1, 4, 8, 2, 6, 17, 72, 4, 7, 1, 10}
we first rearrange it in the ascending order as
{1, 1, 2, 4, 4, 5, 6, 7, 8, 10, 17, 72}
and then observe that 𝑄1 = 3 and 𝑄3 = 9 as the medians of the lower
and upper halves respectively.
𝐼𝑄𝑅 = 𝑄3 − 𝑄1 = 6
The value 72 is a strong outlier because it is larger than the upper Tukey
fence
𝑄3 + 3 × 𝐼𝑄𝑅 = 9 + 3 6 = 27
whereas the value 17 is not an outlier because it falls within the Tukey
fences
[𝑄1 − 1.5 × 𝐼𝑄𝑅, 𝑄3 + 1.5 × 𝐼𝑄𝑅] = [3 − 1.5 6, 9 + 1.5 6] = [−6, 18]
Example
23. Is there any outliers in the following image
222 115
127 251
159 47
63 143
191 79
95 175
207 25
31 249
First we reshape the 2-D matrix representing the image into a 1-D list values
{222, 115, 159, 47, 127, 251, 63, 143, 191, 79, 207, 25, 95, 175, 31, 249}
which, after rearranging, becomes
{25, 31, 47, 63, 79, 95, 115, 127, 143, 159, 175, 191, 207,
222, 249, 251}
and we can look up the values
𝑄1 = 71, 𝑄2 = 135, 𝑎𝑛𝑑 𝑄3 = 199
𝐼𝑄𝑅 = 199 – 71 = 128
[𝑄1 − 1.5 × 𝐼𝑄𝑅, 𝑄3 + 1.5 × 𝐼𝑄𝑅] = [71 − 1.5 128, 199 + 1.5 128] = [−121, 391]
There are no outliers because all the values fall within this interval.
Example
25. Quartiles provide thresholds for breaking data sets up into
quarters. But this is not the only possible useful way to
subdivide data.
More generally, the 𝑘𝑡ℎ percentile, denoted by 𝑃𝑘, is a value
with the property that 𝑘% of the data are less than or equal
to it.
27. • A color image is a stack of three
matrices which contain information on
the three color channels. The exact
composition of those color channels
differs from model to model.
• We will focus on just two commonly
used color models -the RGB model
and the YCbCr model.
• In the RGB color model, the three
primary colors -Red, Green, and
Blue- are added together, which, at
least in theory, enables us to
reproduce as many as 2563 =
16,777,216 synthetic colors.
Color Images and Color Spaces
28. MATLAB
Implementation
imshow(A);
% Showing the channels in gray scale
Red=A(:,:,1); Green=A(:,:,2); Blue=A(:,:,3);
figure;
subplot(1,3,1); imshow(Red); title('(a)The red channel');
subplot(1,3,2); imshow(Green); title('(b)The green
channel');
subplot(1,3,3); imshow(Blue); title('(c)The blue
channel');
29. The RGB color model is most commonly used for displaying images, but it
is not very efficient for storage and transmission due to its inherent
redundancy. The reason is that we perceive the brightness and color
separately and are much more sensitive to small distortions in brightness
than to those in color. In most cases, we can readily sacrifice the latter for
the sake of increasing the speed of transmission.
For that reason, several color models that separate light intensity and color
into different channels have been developed. One of the most commonly
used models of this kind is YCbCr. The luminance channel Y contains the
information on the light intensity and is stored with high resolution, whereas
the two chrominance channels-Cb and Cr-represent the difference from pure
Blue and pure Red and can be compress data very high compression ratio.
Color Images and Color Spaces
السلام عليكم
هذه هي المحاضرة الاولى في موضوع
تقنيات رياضية لمعالجة الصور
راح نركز بهذا الكورس على افكار الرياضيات المستخدمة في مجال معلجة الصور
شنو اساسها الرياضي وشلون ممكن نختار الطرق الامثل لمعالجة الحالات المختلفة
يتم الحديث عن تطبيقات
القطاع الصحي
المرور
التحقق من الشخصية
الحربي
اجندة هذه المحاضرة راح تكون كالتالي
الفرق بين التسمية صور اسود وابيض وهذه التي تدرجاتها رمادية
كل
Gray level
يعامل على انه
Bin
بالتالي نعرف كل تدرج لوني كم مرة ظهر بالصورة
opulent $10,000,000 mansion
قصر فخم 10000000 دولار
modest community of 49 other houses
مجتمع متواضع من 49 منزلا آخر
يمكننا تحديد الاتجاه السائد لمجموعة البيانات بالنصف الأوسط
Quartile
كورتايل
اوتلير
vastly different
مختلفة إلى حد كبير
Tukey fences definition
تعريف توكي فينسيس
سترونغ اوتلير
ممكن تعميم الفكرة مال الكوارتيلز الي تعتمد على ربع ونص وثلاث ارباع الى نسب مئوية
وهذه خارج موضوع الكورس هذا
شوف اللون البرتقالي
خلط احمر واخضر بينما ازرق لايوجد
الابيض خلط للالوان الثلاث
عادة نستخدم
RGB
لعرض الصور ، ولكنه ليس فعالًا جدًا للتخزين والنقل بسبب الفائضية
. عين الانسان تتحسس للسطوع واللون بشكل منفصل
وأننا أكثر حساسية للتشوهات الصغيرة في السطوع من تلك الموجودة في الألوان.
في معظم الحالات ، يمكننا التضحية بالأخيرة بسهولة من أجل زيادة سرعة الإرسال.
luminance الانارة او السطوع
Chrominance التلوين او اللون