Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# STEP 2 Define a vector source by combining two consecutive pixels # and calculate the probabilities of these vector symbols # ADD YOUR CODE

# STEP 2 Define a vector source by combining two consecutive pixels
# and calculate the probabilities of these vector symbols
# ADD YOUR CODE HERE
# notes:
# since each pixel has 8 intensity levels, there will be 8x8=64 symbols in the vector source.
# the symbols for the vector source could be represented as "aa, ab, ac,..., hf, fg, hh."
# there are a total of 512*512/2=131,072 sample vectors in the input image to calculate the histogram
# calculate the histogram of the vector symbols
# obtain the pdf by normalizing the histogram
# plot the pdf of this vector source
height, width = imgLumQuan.shape
histogram = np.zeros(64, dtype=int)
for i in range(height):
for j in range(0, width -1,2):
vector =(imgLumQuan[i, j], imgLumQuan[i, j +1])
I need to 1d pdf

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions

Question

6. Is all Internet training the same? Explain.

Answered: 1 week ago