Question: Q1 / we have created two matrices in Microsoft Excel to represent a binary image and a gray-level image. In this one, you will create
Q1 / we have created two matrices in Microsoft Excel to represent a binary image and a gray-level image. In this one, you will create MATLAB matrices to hold the pixel intensity values from the MS-Excel spreadsheet, and make the two MATLAB matrices as a binary image and a gray-level image. Questions
1. Create an empty matrix imB in MATLAB. Copy-Paste the 0/1 matrix from MS-Excel to imB and convert the matrix to logical data type. Output matrix imB as a PNG file named imB.png
2. Create an empty matrix imG in MATLAB. Copy-Paste the 0-255 matrix from MS-Excel to imG and convert the matrix to 8-bit unsigned integer (uint8) data type. Output matrix imG as a PNG file named imG.png
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
