Problem. You are designing a simple black and white image processing algorithm. It needs to detect the darkness or lightness of an area in the image. For every 2 pixels x 2 pixels matrix, the color of the pixels are observed. The area is considered dark if at least half of the pixels are black, Otherwise, the area is considered light. The pixels under observation are labeled A, B,C, and D as shown below. Let A 0, B 0, C =0, or D=0 if the corresponding pixel of the label is color black. Let X =0 if the 2 x 2 matrix is considered dark. Example scenarios are also shown below. B D Example scenarios: Matrix is considered light Matrix is considered dark B. C D C D A = 0, B = 1, C 1, D 1 A = 1, B = 0, C 0, D 0 Part 1. Specify the input and output variables and the binary states of each. 1. What are the input variables and what do their binary values represent? 2. What are the output variables and what do their binary values represent? Part 2. Construct the truth table showing the desired output for each combination of inputs. (Please arrange your variables in alphabetical order with the MSB as the first letter in alphabetical order) Part 3. Write the Boolean expression for the truth table you constructed in Part 2. Simplify the final expression such that there are only 3 variables per term. Partial points will be given if the final expression is not simplified.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

answer only 1

Problem.
You are designing a simple black and white image processing algorithm. It needs to detect the darkness or lightness of an area in the image. For every 2 pixels x 2 pixels matrix, the color of the
pixels are observed. The area is considered dark if at least half of the pixels are black, Otherwise, the area is considered light.
The pixels under observation are labeled A, B,C, and D as shown below. Let A 0, B 0, C =0, or D=0 if the corresponding pixel of the label is color black. Let X =0 if the 2 x 2
matrix is considered dark. Example scenarios are also shown below.
B
D
Example scenarios:
Matrix is considered light
Matrix is considered dark
B.
C D
C D
A = 0, B = 1, C 1, D 1
A = 1, B = 0, C 0, D 0
Part 1. Specify the input and output variables and the binary states of each.
1. What are the input variables and what do their binary values represent?
2. What are the output variables and what do their binary values represent?
Part 2. Construct the truth table showing the desired output for each combination of inputs. (Please arrange your variables in alphabetical order with the MSB as the first letter in alphabetical
order)
Part 3. Write the Boolean expression for the truth table you constructed in Part 2. Simplify the final expression such that there are only 3 variables per term. Partial points will be given if the final
expression is not simplified.
Transcribed Image Text:Problem. You are designing a simple black and white image processing algorithm. It needs to detect the darkness or lightness of an area in the image. For every 2 pixels x 2 pixels matrix, the color of the pixels are observed. The area is considered dark if at least half of the pixels are black, Otherwise, the area is considered light. The pixels under observation are labeled A, B,C, and D as shown below. Let A 0, B 0, C =0, or D=0 if the corresponding pixel of the label is color black. Let X =0 if the 2 x 2 matrix is considered dark. Example scenarios are also shown below. B D Example scenarios: Matrix is considered light Matrix is considered dark B. C D C D A = 0, B = 1, C 1, D 1 A = 1, B = 0, C 0, D 0 Part 1. Specify the input and output variables and the binary states of each. 1. What are the input variables and what do their binary values represent? 2. What are the output variables and what do their binary values represent? Part 2. Construct the truth table showing the desired output for each combination of inputs. (Please arrange your variables in alphabetical order with the MSB as the first letter in alphabetical order) Part 3. Write the Boolean expression for the truth table you constructed in Part 2. Simplify the final expression such that there are only 3 variables per term. Partial points will be given if the final expression is not simplified.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY