Question

Please write python codes to smooth an image by using median filter and Bilateral filter separately. You should give your cod
0 0
Add a comment Improve this question Transcribed image text
Answer #1

from PIL import Image, ImageFilter

original1 = Image.open("test.jpg")

median_filter = original1.filter(ImageFilter.MedianFilter(5))

median_filter.show()

@ 100% v tmpb7rms... D E - X Properties Size 225 x 225 pixels Type PNG image File Size 43.4 kB Folder tmp Aperture Exposure F

import cv2

original = cv2.imread('test.jpg')

bilateral_filter = cv2.bilateralFilter(original,15,7,75)

cv2.imshow('Original',original)

cv2.imshow('bilateral Filter',bilateral_filter)

cv2.waitKey(0)

Original Designed by Pngre (x=209 v=65R-06-17 6-47

bilateral Filter Designed by Png Jíxl v=14) R-G-138-39

Add a comment
Know the answer?
Add Answer to:
Please write python codes to smooth an image by using median filter and Bilateral filter separately....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT