Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider an image A containing a picture of a baby smiling, and an image B containing a picture of the same baby in the same

Consider an image A containing a picture of a baby smiling, and
an image B containing a picture of the same baby in the same
pose, but which now looks like it is crying. Consider also the
following uncommented Python-inspired pseudo-code that
returns an image that we will call C.
from scipy import absolute as abs
from scipy.fftpack import (fft2, ifft2,
fftshift, ifftshift)
def untitled(A, B):
"""An uncommented function that takes
as arguments two 2D NumPy arrays.
"""
A=fftshift(fft2(A))
B=fftshift(fft2(B))
D= an image with a disc of zeros at the
centre and ones everywhere else
A=A**D
B=B**abs(D-1)
ifft2shift (A)
ifft2shift(B))
return A+B
i. What is the special property of image C that one can
perceive?
ii. Explain the theory behind why C has this special property.
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Professional Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions

Question

LO23.2 Discuss the extent and sources of income inequality.

Answered: 1 week ago