Question

Verify that if you have an image $I$ with all zeroes except for a single location with value 1, that $(f * I)(a,b) = f$. Try it for a 3x3 filter $f$ and a 5x5 image $I$ with a 1 in the middle and zeros everywhere else. Note that the result $(f * I)(a, b)$ might be a bit offset from $f(a, b)$ depending on your indexing.

          Verify that if you have an image $I$ with all zeroes except for a single
location with value 1, that $(f * I)(a,b) = f$. Try it for a 3x3 filter $f$ and a
5x5 image $I$ with a 1 in the middle and zeros everywhere else. Note that
the result $(f * I)(a, b)$ might be a bit offset from $f(a, b)$ depending on your
indexing.
        
Show more…
Verify that if you have an image I with all zeroes except for a single
location with value 1, that (f * I)(a,b) = f. Try it for a 3x3 filter f and a
5x5 image I with a 1 in the middle and zeros everywhere else. Note that
the result (f * I)(a, b) might be a bit offset from f(a, b) depending on your
indexing.

Added by Eric L.

Close

Computer Science and Information Technology
Computer Science and Information Technology
Trishna Knowledge Systems 2018 Edition
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
Verify that if you have an image I with all zeroes except for a single location with value 1 , that (f**I)(a,b)=f. Try it for a 3 imes 3 filter f and a 5 imes 5 image I with a 1 in the middle and zeros everywhere else. Note that the result (f**I)(a,b) might be a bit offset from f(a,b) depending on your indexing. Verify that if you have an image I with all zeroes except for a single location with value 1, that (f * I)(a,b) = f. Try it for a 3x3 filter f and a 5x5 image I with a 1 in the middle and zeros everywhere else. Note that the result (f *I)(a,b) might be a bit offset from f(a,b) depending on your indexing.
Close icon
Play audio
Feedback
Powered by NumerAI
Jennifer Stoner David Collins
Danielle Fairburn verified

Akash M and 65 other subject AP CS educators are ready to help you.

Ask a new question

*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Key Concept
Premium Feature
Explore the core concept behind this problem.
Play button
Key Concept
Premium Feature
Explore the core concept behind this problem.
Your browser does not support the video tag.

*

Recommended Videos

-
we-can-recover-the-original-image-by-xoring-the-noise-image-with-the-key-in-a-certain-fashionxoralso-known-as-exclusive-or-is-a-boolean-bitwise-operation-you-can-read-about-it-here-links-to-67575

We can recover the original image by XORing the noise image with the key in a certain fashion. XOR (also known as exclusive OR) is a boolean 'bitwise' operation. You can read about it here. In Python, with A&B integers, 'A^B' performs a bitwise XOR on the bits representing the integer values of A and B. Also, there is an augmented operator, '^='. 'A ^= B' XORs A & B and stores the result in A. Also, Numpy arrays define '^' and '^=' operators. We encrypt an image by XORing the image with a key. We recover the image by XORing with the key again. This works because A^B^A = B. Load the key array by doing key = np.load('key.npy'). Note that the length of the key is the same as one row of the secret image. To reveal the secret image, XOR each red, green, and blue row of the image with the key, then display the very pretty result. The 'imageshow' function may provide a better rendition than plt.imshow.

Akash M.

digital-image-processing-problem-1given-the-following-8-bit-imageie-pixel-values-range-from-0-to-255-22-121-67-100-15013-19820-30-threshold-the-image-using-50-level-problem-2given-the-follow-29733

Digital Image Processing Problem 1: Given the following 8-bit image, i.e. pixel values range from 0 to 255: 22, 121, 67, 100, 150, 13, 198, 20, 30. Threshold the image using 50% level. Problem 2: Given the following image and kernel: w = 1/9 * [1 1 1; 1 1 1; 1 1 1], f = [150 28 34; 25 125 165; 110 46 255] [a] Find the convolution of the two. Use minimum zero padding before convolution. [b] What is the filter type? Problem 3: Given the following image and kernel: w = [1 1 1; 1 -8 1; 1 1 1], f = [50 10 6; 22 5 7; 4 52 2] [a] Find the convolution of the two. Use minimum zero padding before convolution. [b] What is the filter type? Problem 4: Given the following image: f = [57 100 120; 43 62 42; 158 26 251]. Apply a 3 by 3 median filter on the image to find the output at the middle pixel.

Sri K.

in-image-processing-filtering-an-image-is-replacing-each-pixel-with-a-linear-combination-of-its-neighbors-this-process-can-be-accomplished-through-convolution-of-the-image-with-convolution-f-81725

In image processing, filtering an image is replacing each pixel with a linear combination of its neighbors. This process can be accomplished through convolution of the image with convolution filters called kernels. A mathematical model for the convolution process is: gx,y = ∑i=-n ∑j=-m hi,j * I(x-i, y-j) Explain in detail at least two applications of filtering in image processing. [10 marks] With the aid of a neat diagram, explain in detail the convolution process. [10 marks] Apply the convolution method to filter image I: I = 23 56 13 52 51 23 24 74 32 52 05 14 51 78 12 0 13 21 85 15 59 81 65 49 55 45 52 76 65 48 46 82 89 98 112 92 110 154 105 96 126 with kernel: h = 1 0 -1 0 0 0 -1 0 1 [25 marks] Validate your result using Matlab. [5 marks]

Sri K.


*

Recommended Textbooks

-
Computer Science and Information Technology

Computer Science and Information Technology

Trishna Knowledge Systems 2018 Edition
achievement 1,723 solutions
Introduction to Programming Using Python

Introduction to Programming Using Python

Y. Daniel Liang 1st Edition
achievement 1,148 solutions
Computer Science - An Overview

Computer Science - An Overview

Glenn Brookshear, Dennis Brylow 12th Edition
achievement 1,862 solutions

*

Transcript

-
00:01 Here is an example in python using numpy and the image show function image show function import numpy as np import mat plotlib dot pyplot as pld load the encrypted image encrypted image is equals to pld dot i am read encrypted image png load the key key is equals to np dot load key dot np y decrypt the image by x or ring each row of the image with a key decrypt decrypted image is equals to encrypted? image copy decrypted image copy 0 is equals to key 1 is equals to key and is equals to key display the descriptor image and be ld title decrypted image make sure to replace encrypted image png with the path of your encrypted image file image show function is placeholder you can replace it with appropriate function you have for displaying images...
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever