SlideShare a Scribd company logo
Write MatLAb code that would produce the following print:
Solution
rgb = imread('coloredChips.png'); figure imshow(rgb) d = imdistline; delete(d);
gray_image = rgb2gray(rgb); imshow(gray_image); [centers, radii] = imfindcircles(rgb,[20
25],'ObjectPolarity','dark') [centers, radii] = imfindcircles(rgb,[20
25],'ObjectPolarity','dark', ... 'Sensitivity',0.9) imshow(rgb); h = viscircles(centers,radii);
[centers, radii] = imfindcircles(rgb,[20 25],'ObjectPolarity','dark', ... 'Sensitivity',0.92);
length(centers) delete(h); % Delete previously drawn circles h = viscircles(centers,radii);

More Related Content

More from brijeshagarwa329898l

computer math Use the following to answer questions 1-2 In the q.pdf
computer math Use the following to answer questions 1-2 In the q.pdfcomputer math Use the following to answer questions 1-2 In the q.pdf
computer math Use the following to answer questions 1-2 In the q.pdf
brijeshagarwa329898l
 
CASe Stic ato wad duun SolutionAggregates used in this method a.pdf
CASe Stic ato wad duun SolutionAggregates used in this method a.pdfCASe Stic ato wad duun SolutionAggregates used in this method a.pdf
CASe Stic ato wad duun SolutionAggregates used in this method a.pdf
brijeshagarwa329898l
 
Why do rays run radially in a woody stemHow would wood produced i.pdf
Why do rays run radially in a woody stemHow would wood produced i.pdfWhy do rays run radially in a woody stemHow would wood produced i.pdf
Why do rays run radially in a woody stemHow would wood produced i.pdf
brijeshagarwa329898l
 
Write a java program that reads a number N as input and displays the.pdf
Write a java program that reads a number N as input and displays the.pdfWrite a java program that reads a number N as input and displays the.pdf
Write a java program that reads a number N as input and displays the.pdf
brijeshagarwa329898l
 
Why is the DNA fragment amplified with Phusion DNA into pGEM-T plasmi.pdf
Why is the DNA fragment amplified with Phusion DNA into pGEM-T plasmi.pdfWhy is the DNA fragment amplified with Phusion DNA into pGEM-T plasmi.pdf
Why is the DNA fragment amplified with Phusion DNA into pGEM-T plasmi.pdf
brijeshagarwa329898l
 
Which of these is a function of the skeletal system communication s.pdf
Which of these is a function of the skeletal system  communication s.pdfWhich of these is a function of the skeletal system  communication s.pdf
Which of these is a function of the skeletal system communication s.pdf
brijeshagarwa329898l
 
what is transport layer what are the typical attacks in transport l.pdf
what is transport layer what are the typical attacks in transport l.pdfwhat is transport layer what are the typical attacks in transport l.pdf
what is transport layer what are the typical attacks in transport l.pdf
brijeshagarwa329898l
 
Which monetary aggregate would you expect the Federal Reserve to hav.pdf
Which monetary aggregate would you expect the Federal Reserve to hav.pdfWhich monetary aggregate would you expect the Federal Reserve to hav.pdf
Which monetary aggregate would you expect the Federal Reserve to hav.pdf
brijeshagarwa329898l
 
wavelet decomposition process code in matlabSolution WAVE.pdf
wavelet decomposition process code in matlabSolution WAVE.pdfwavelet decomposition process code in matlabSolution WAVE.pdf
wavelet decomposition process code in matlabSolution WAVE.pdf
brijeshagarwa329898l
 
What happens if a red hot inoculation loop plunges into the nutrient .pdf
What happens if a red hot inoculation loop plunges into the nutrient .pdfWhat happens if a red hot inoculation loop plunges into the nutrient .pdf
What happens if a red hot inoculation loop plunges into the nutrient .pdf
brijeshagarwa329898l
 
What are speaking notes Have you used speaking notes before What wo.pdf
What are speaking notes Have you used speaking notes before What wo.pdfWhat are speaking notes Have you used speaking notes before What wo.pdf
What are speaking notes Have you used speaking notes before What wo.pdf
brijeshagarwa329898l
 
There are five components of internal control1) Control environme.pdf
There are five components of internal control1) Control environme.pdfThere are five components of internal control1) Control environme.pdf
There are five components of internal control1) Control environme.pdf
brijeshagarwa329898l
 
The height of a right triangle is 2 feet more than twice the length .pdf
The height of a right triangle is 2 feet more than twice the length .pdfThe height of a right triangle is 2 feet more than twice the length .pdf
The height of a right triangle is 2 feet more than twice the length .pdf
brijeshagarwa329898l
 
ST=TS show that the generalized eigenspace of T are invariant under .pdf
ST=TS show that the generalized eigenspace of T are invariant under .pdfST=TS show that the generalized eigenspace of T are invariant under .pdf
ST=TS show that the generalized eigenspace of T are invariant under .pdf
brijeshagarwa329898l
 
Singer and Nicolson proposed the fluid mosaic model of the cell membr.pdf
Singer and Nicolson proposed the fluid mosaic model of the cell membr.pdfSinger and Nicolson proposed the fluid mosaic model of the cell membr.pdf
Singer and Nicolson proposed the fluid mosaic model of the cell membr.pdf
brijeshagarwa329898l
 
Opportunity or temptationJournal of Case StudiesIntroductionT.pdf
Opportunity or temptationJournal of Case StudiesIntroductionT.pdfOpportunity or temptationJournal of Case StudiesIntroductionT.pdf
Opportunity or temptationJournal of Case StudiesIntroductionT.pdf
brijeshagarwa329898l
 
Multiple choice.Is there evidence that the age at which women get .pdf
Multiple choice.Is there evidence that the age at which women get .pdfMultiple choice.Is there evidence that the age at which women get .pdf
Multiple choice.Is there evidence that the age at which women get .pdf
brijeshagarwa329898l
 
List three Key characteristics of DNA used in studying DNA in electr.pdf
List three Key characteristics of DNA used in studying DNA in electr.pdfList three Key characteristics of DNA used in studying DNA in electr.pdf
List three Key characteristics of DNA used in studying DNA in electr.pdf
brijeshagarwa329898l
 
Let T be the transform from P2 (the vector space of second degree po.pdf
Let T be the transform from P2 (the vector space of second degree po.pdfLet T be the transform from P2 (the vector space of second degree po.pdf
Let T be the transform from P2 (the vector space of second degree po.pdf
brijeshagarwa329898l
 
Liens Kanahara is employed part-time by the Cross-Bar Packing Corp..pdf
Liens Kanahara is employed part-time by the Cross-Bar Packing Corp..pdfLiens Kanahara is employed part-time by the Cross-Bar Packing Corp..pdf
Liens Kanahara is employed part-time by the Cross-Bar Packing Corp..pdf
brijeshagarwa329898l
 

More from brijeshagarwa329898l (20)

computer math Use the following to answer questions 1-2 In the q.pdf
computer math Use the following to answer questions 1-2 In the q.pdfcomputer math Use the following to answer questions 1-2 In the q.pdf
computer math Use the following to answer questions 1-2 In the q.pdf
 
CASe Stic ato wad duun SolutionAggregates used in this method a.pdf
CASe Stic ato wad duun SolutionAggregates used in this method a.pdfCASe Stic ato wad duun SolutionAggregates used in this method a.pdf
CASe Stic ato wad duun SolutionAggregates used in this method a.pdf
 
Why do rays run radially in a woody stemHow would wood produced i.pdf
Why do rays run radially in a woody stemHow would wood produced i.pdfWhy do rays run radially in a woody stemHow would wood produced i.pdf
Why do rays run radially in a woody stemHow would wood produced i.pdf
 
Write a java program that reads a number N as input and displays the.pdf
Write a java program that reads a number N as input and displays the.pdfWrite a java program that reads a number N as input and displays the.pdf
Write a java program that reads a number N as input and displays the.pdf
 
Why is the DNA fragment amplified with Phusion DNA into pGEM-T plasmi.pdf
Why is the DNA fragment amplified with Phusion DNA into pGEM-T plasmi.pdfWhy is the DNA fragment amplified with Phusion DNA into pGEM-T plasmi.pdf
Why is the DNA fragment amplified with Phusion DNA into pGEM-T plasmi.pdf
 
Which of these is a function of the skeletal system communication s.pdf
Which of these is a function of the skeletal system  communication s.pdfWhich of these is a function of the skeletal system  communication s.pdf
Which of these is a function of the skeletal system communication s.pdf
 
what is transport layer what are the typical attacks in transport l.pdf
what is transport layer what are the typical attacks in transport l.pdfwhat is transport layer what are the typical attacks in transport l.pdf
what is transport layer what are the typical attacks in transport l.pdf
 
Which monetary aggregate would you expect the Federal Reserve to hav.pdf
Which monetary aggregate would you expect the Federal Reserve to hav.pdfWhich monetary aggregate would you expect the Federal Reserve to hav.pdf
Which monetary aggregate would you expect the Federal Reserve to hav.pdf
 
wavelet decomposition process code in matlabSolution WAVE.pdf
wavelet decomposition process code in matlabSolution WAVE.pdfwavelet decomposition process code in matlabSolution WAVE.pdf
wavelet decomposition process code in matlabSolution WAVE.pdf
 
What happens if a red hot inoculation loop plunges into the nutrient .pdf
What happens if a red hot inoculation loop plunges into the nutrient .pdfWhat happens if a red hot inoculation loop plunges into the nutrient .pdf
What happens if a red hot inoculation loop plunges into the nutrient .pdf
 
What are speaking notes Have you used speaking notes before What wo.pdf
What are speaking notes Have you used speaking notes before What wo.pdfWhat are speaking notes Have you used speaking notes before What wo.pdf
What are speaking notes Have you used speaking notes before What wo.pdf
 
There are five components of internal control1) Control environme.pdf
There are five components of internal control1) Control environme.pdfThere are five components of internal control1) Control environme.pdf
There are five components of internal control1) Control environme.pdf
 
The height of a right triangle is 2 feet more than twice the length .pdf
The height of a right triangle is 2 feet more than twice the length .pdfThe height of a right triangle is 2 feet more than twice the length .pdf
The height of a right triangle is 2 feet more than twice the length .pdf
 
ST=TS show that the generalized eigenspace of T are invariant under .pdf
ST=TS show that the generalized eigenspace of T are invariant under .pdfST=TS show that the generalized eigenspace of T are invariant under .pdf
ST=TS show that the generalized eigenspace of T are invariant under .pdf
 
Singer and Nicolson proposed the fluid mosaic model of the cell membr.pdf
Singer and Nicolson proposed the fluid mosaic model of the cell membr.pdfSinger and Nicolson proposed the fluid mosaic model of the cell membr.pdf
Singer and Nicolson proposed the fluid mosaic model of the cell membr.pdf
 
Opportunity or temptationJournal of Case StudiesIntroductionT.pdf
Opportunity or temptationJournal of Case StudiesIntroductionT.pdfOpportunity or temptationJournal of Case StudiesIntroductionT.pdf
Opportunity or temptationJournal of Case StudiesIntroductionT.pdf
 
Multiple choice.Is there evidence that the age at which women get .pdf
Multiple choice.Is there evidence that the age at which women get .pdfMultiple choice.Is there evidence that the age at which women get .pdf
Multiple choice.Is there evidence that the age at which women get .pdf
 
List three Key characteristics of DNA used in studying DNA in electr.pdf
List three Key characteristics of DNA used in studying DNA in electr.pdfList three Key characteristics of DNA used in studying DNA in electr.pdf
List three Key characteristics of DNA used in studying DNA in electr.pdf
 
Let T be the transform from P2 (the vector space of second degree po.pdf
Let T be the transform from P2 (the vector space of second degree po.pdfLet T be the transform from P2 (the vector space of second degree po.pdf
Let T be the transform from P2 (the vector space of second degree po.pdf
 
Liens Kanahara is employed part-time by the Cross-Bar Packing Corp..pdf
Liens Kanahara is employed part-time by the Cross-Bar Packing Corp..pdfLiens Kanahara is employed part-time by the Cross-Bar Packing Corp..pdf
Liens Kanahara is employed part-time by the Cross-Bar Packing Corp..pdf
 

Recently uploaded

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 

Recently uploaded (20)

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 

Write MatLAb code that would produce the following printSolution.pdf

  • 1. Write MatLAb code that would produce the following print: Solution rgb = imread('coloredChips.png'); figure imshow(rgb) d = imdistline; delete(d); gray_image = rgb2gray(rgb); imshow(gray_image); [centers, radii] = imfindcircles(rgb,[20 25],'ObjectPolarity','dark') [centers, radii] = imfindcircles(rgb,[20 25],'ObjectPolarity','dark', ... 'Sensitivity',0.9) imshow(rgb); h = viscircles(centers,radii); [centers, radii] = imfindcircles(rgb,[20 25],'ObjectPolarity','dark', ... 'Sensitivity',0.92); length(centers) delete(h); % Delete previously drawn circles h = viscircles(centers,radii);