Task 1: Create an m-file that do the following: Read a coins.png image. Convert coins.png image into
Fantastic news! We've Found the answer you've been seeking!
Question:
Task 1: Create an m-file that do the following:
- Read a ‘coins.png’ image.
- Convert ‘coins.png’ image into binary using function im2bw with threshold 0.38.
- Count the number of coins that results from question number 2 using the following two functions: bwlabel and bwconncomp
Task 2: Write a Matlab code to create the following images:
- 256 × 150 image that have 256 colors on it starting 0 till 255 (the first row is black, the last row is white, and in between all the gray shades).
- 280 × 280 1-bit binary image that have 3 interlaced squares of size (50×50) on it.
- 300 × 300 8-bit gray image that have 3 interlaced squares of size (50×50) on it.
- 300 × 300 24-bit colored image that have 3 interlaced squares of size (50×50) on it.
Task 4: Write a Matlab code to do the following:
- Read a ‘rice.png’ image
- Make the image smaller to [60, 60] and call it small_img
- Enlarge the output image from step 2 (small_img) into [300, 300] using nearest neighbor interpolation.
- Enlarge the output image from step 2 (small_img) into [300, 300] using Bilinear interpolation.
- Enlarge the output image from step 2 (small_img) into [300, 300] using Bicubic interpolation.
Related Book For
Methods of IT Project Management
ISBN: 978-1557536631
2nd edition
Authors: Jeffrey Brewer, Kevin Dittman
Posted Date: