Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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. 

Step by Step Solution

3.36 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

Solution Task1 A 7680 B 4320 C 8 D 8 I chessboard3BACD imshowI function a chessboard3BACD1 floorAC L2 floorBD k 1 for m1L1A for n1L2B ammL11nnL21onesL1L2coskpi kk1 end kk1 end end read in tiff image a... 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

Methods of IT Project Management

Authors: Jeffrey Brewer, Kevin Dittman

2nd edition

1557536635, 978-0132367257, 0132367254, 978-1557536631

More Books

Students also viewed these Programming questions

Question

How many applicants are you interviewing?

Answered: 1 week ago

Question

Given the following data, develop a frequency distribution:

Answered: 1 week ago