Course Hero Logo

mathematical_foundation.pdf - MATHEMATICAL FOUNDATION OF...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 4 out of 10 pages.

MATHEMATICAL FOUNDATION OFCOMPUTING(LAB ASSISGNMENT)Submitted byNameAnkur TyagiCourse-M.sc Informatics (2020-22)CollegeRoll No.- 20/1409Examination roll no-20285756009Email id- [email protected]
1)What is (i) grayscale image, (ii) indexed image. Write aMATLAB program to read and write grayscale and indexedimage.(i)Grayscale Image- Grayscale is a range of shades of Gray withoutapparent colour. The darkest possible shade is black, which is the totalabsence of transmitted or reflected light. The lightest possible shade iswhite, the total transmission or reflection of light at allvisible wavelengths.Program code-img = imread("greyscale.png")figure(1)imshow(img)title("greyscale image")imwrite(img,"greyscale.png")OUTPUT-Image used
(ii)Indexed Image-Anindexed imageuses direct mapping of pixel valuesto colormap values. The color of eachimagepixel is determined byusing the corresponding value of X as anindexinto mapProgram code-[x,y] = imread("indexed.png");figure(2)imshow(x,y)imwrite(img,"indexed.png")title("indexed image")OUTPUT-Image used :

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 10 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Winter
Professor
Tanmoy
Tags
Pulse width modulation, Carrier wave

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture