SlideShare a Scribd company logo
1 of 16
Download to read offline
1
‫افزار‬ ‫نرم‬ ‫در‬ ‫دایره‬ ‫تشخیص‬MATLAB
‫اول‬ ‫گام‬‫تصویر‬ ‫گذاری‬ ‫بار‬ :
2
‫دوم‬ ‫گام‬‫تعیین‬ :‫ی‬ ‫محدوده‬‫شعاع‬‫جستجو‬ ‫برای‬‫ی‬‫ه‬ ‫حلقه‬‫ا‬
‫کدام‬ ‫هر‬ ‫که‬ ‫دارد‬ ‫وجود‬ ‫مختلفی‬ ‫رنگی‬ ‫های‬ ‫دایره‬ ‫اینجا‬ ‫در‬
‫زمینه‬ ‫پس‬ ‫به‬ ‫نسبت‬(‫کنتراست‬contrast.‫دارند‬ ‫متفاوتی‬ )
‫قرمز‬ ‫و‬ ‫آبی‬ ‫های‬ ‫رنگ‬‫زمینه‬ ‫پس‬ ‫این‬ ‫در‬‫زیادی‬ ‫کنتراست‬
‫و‬ ‫دارند‬‫خوبی‬ ‫کنتراست‬ ‫زمینه‬ ‫پس‬ ‫با‬ ‫زرد‬ ‫های‬ ‫دایره‬ ‫از‬ ‫بعضی‬
.‫ندارند‬‫روی‬ ‫همچنین‬ ‫و‬ ‫ها‬ ‫دایره‬ ‫این‬ ‫مرزهای‬ ‫بودن‬ ‫نزدیک‬
‫ها‬ ‫دایره‬ ‫این‬ ‫تعیین‬ ‫های‬ ‫چالش‬ ‫از‬ ‫یکی‬ ‫دیگر‬ ‫برخی‬ ‫افتادن‬ ‫هم‬
.‫است‬
‫ها‬ ‫دایره‬ ‫باید‬ ‫که‬ ‫شعاع‬ ‫ی‬ ‫محدوده‬ ‫که‬ ‫داریم‬ ‫نیاز‬ ‫روش‬ ‫این‬ ‫در‬
‫ر‬.‫بیابیم‬‫را‬‫کنیم‬‫پیدا‬‫آن‬‫در‬‫ا‬‫م‬‫این‬‫کردن‬‫پیدا‬‫برای‬ ‫دراینجا‬‫قدار‬
‫دستور‬ ‫از‬imdistline.‫کنیم‬ ‫می‬ ‫استفاده‬
3
‫ی‬ ‫محدوده‬ ‫در‬ ‫ها‬ ‫دایره‬ ‫بیشتر‬23-21‫در‬ .‫دارند‬ ‫قرار‬ ‫پیکسل‬
‫را‬ ‫محدوده‬ ‫شعاعی‬ ‫ی‬ ‫محدوده‬ ‫از‬ ‫اطمینان‬ ‫برای‬ ‫ما‬ ‫اینجا‬25-
20.‫گیریم‬ ‫می‬ ‫نظر‬ ‫در‬‫آن‬ ‫از‬ ‫قبل‬ ‫فقط‬imdistline‫حذف‬ ‫را‬
.‫کنیم‬ ‫می‬
4
5
‫ها‬ ‫دایره‬ ‫یافتن‬ ‫برای‬ ‫تالش‬ ‫اولین‬ : ‫سوم‬ ‫گام‬
‫قبل‬‫از‬‫شعاعی‬ ‫ی‬ ‫محدوده‬ ‫با‬ ‫ها‬ ‫دایره‬ ‫کردن‬ ‫پیدا‬25-20
‫پیکسل‬‫؛‬‫زمینه‬‫پس‬‫از‬‫ها‬‫دایره‬‫آیا‬‫که‬‫کنیم‬‫بررسی‬‫است‬ ‫خوب‬
‫استفاده‬ ‫با‬ ‫سوال‬ ‫این‬ ‫به‬ ‫پاسخ‬ ‫برای‬ ‫هستند؟‬ ‫تر‬ ‫تیره‬ ‫یا‬ ‫تر‬ ‫روشن‬
‫دستور‬ ‫از‬rgb2gray.‫کنیم‬ ‫می‬ ‫سفید‬ ‫و‬ ‫سیاه‬ ‫را‬ ‫تصویر‬
6
‫دایره‬ ‫از‬ ‫تر‬ ‫روشن‬ ً‫ال‬‫کام‬ ‫زمینه‬ ‫پس‬ ‫است‬ ‫مشخص‬ ‫که‬ ‫همانطور‬
‫بنابراین‬ ‫است‬ ‫ها‬‫فرض‬ ‫پیش‬ ‫طور‬ ‫به‬imfindcircles‫دایره‬
‫زمینه‬ ‫پس‬ ‫از‬ ‫که‬ ‫ای‬‫بنابراین‬ .‫کند‬ ‫می‬ ‫پیدا‬ ‫را‬ ‫است‬ ‫تر‬ ‫روشن‬
‫پارامتر‬ ‫اینجا‬ ‫در‬ObjectPolarity‫به‬ ‫را‬dark‫می‬ ‫تنظیم‬
.‫کنیم‬
.‫است‬ ‫نشده‬ ‫داده‬ ‫ما‬ ‫به‬ ‫خروجی‬ ‫بینید‬ ‫می‬ ‫که‬ ‫همانطور‬‫این‬ ‫و‬
‫اتفاق‬ ‫اغلب‬ ‫این‬ ‫و‬ .‫است‬ ‫نشده‬ ‫یافت‬ ‫ای‬ ‫حلقه‬ ‫هیچ‬ ‫اینکه‬ ‫یعنی‬
‫افتد‬ ‫می‬‫زیرا‬imfindcircles‫ساز‬ ‫آشکار‬ ‫از‬ ‫بسیاری‬ ‫مانند‬
‫ها‬.‫است‬ ‫داخلی‬ ‫شناسایی‬ ‫آستانه‬ ‫دارای‬‫در‬Imfindcircles
‫پارامتر‬sensitivity‫را‬‫داخلی‬ ‫حساسیت‬ ‫کنترل‬ ‫برای‬‫وجو‬‫د‬
‫تر‬ ‫پایین‬ ‫آستانه‬ ‫باشد‬ ‫باالتر‬ ‫حساسیت‬ ‫چقدر‬ ‫هر‬ ‫اینجا‬ ‫در‬ .‫دارد‬
.‫شود‬ ‫می‬ ‫داده‬ ‫تشخیص‬ ‫بیشتری‬ ‫های‬ ‫دایره‬ ‫و‬ ‫است‬
7
‫همانطور‬‫نداریم‬ ‫خروجی‬ ‫کنید‬ ‫می‬ ‫مشاهده‬ ‫که‬
‫حساسیت‬ ‫افزایش‬ : ‫چهارم‬ ‫گام‬
‫است‬ ‫یک‬ ‫و‬ ‫صفر‬ ‫بین‬ ‫عددی‬ ‫حساسیت‬‫ف‬ ‫پیش‬ ‫طور‬ ‫به‬ ‫که‬‫رض‬
0.85‫را‬ ‫حساسیت‬ ‫اینجا‬ ‫در‬ ‫ما‬ .‫است‬0.9.‫کنیم‬ ‫می‬
8
‫بار‬ ‫این‬.‫است‬ ‫کرده‬ ‫پیدا‬ ‫را‬ ‫دایره‬ ‫هشت‬
9
‫ها‬ ‫دایره‬ ‫رسم‬ : ‫پنجم‬ ‫گام‬
‫هم‬‫انطور‬‫هنوز‬ ‫کنید‬ ‫می‬ ‫مشاهده‬ ‫که‬‫تشخیص‬ ‫ها‬ ‫دایره‬ ‫همه‬
‫اند‬ ‫نشده‬ ‫داده‬‫بنابراین‬ .‫را‬ ‫حساسیت‬ ‫بهتر‬ ‫نتیجه‬ ‫برای‬0.92
.‫کنیم‬ ‫می‬
10
11
‫گام‬‫ُد‬‫ت‬‫م‬ ‫از‬ ‫استفاده‬ : ‫ششم‬Two-Stage‫کردن‬ ‫پیدا‬ ‫برای‬
‫دایره‬
12
‫گام‬‫بع‬ ‫چرا‬ : ‫هفتم‬‫تشخیص‬ ‫هنوز‬ ‫ها‬ ‫دایره‬ ‫از‬ ‫ضی‬‫نشد‬ ‫داده‬‫ه‬
‫اند‬‫؟‬
‫دایره‬‫پا‬ ‫کنتراست‬ ‫علت‬ ‫به‬ ‫زرد‬ ‫های‬‫یین‬‫نی‬ ‫تشخیص‬ ‫قابل‬.‫ستند‬
‫ولی‬‫که‬ ‫همانطور‬‫بین‬ ‫می‬ ‫هم‬ ‫زیر‬ ‫شکل‬ ‫در‬‫از‬ ‫ها‬ ‫دایره‬ ‫این‬ ‫ید‬
‫بنابراین‬ .‫هستند‬ ‫تر‬ ‫روشن‬ ‫زمینه‬ ‫پس‬‫ب‬‫ه‬‫جای‬‫کلمه‬dark‫ا‬‫ز‬
bright.‫کنیم‬ ‫می‬ ‫استفاده‬
13
‫همانطور‬‫از‬ ‫یکی‬ ‫هم‬ ‫هنوز‬ ‫کنید‬ ‫می‬ ‫مشاهده‬ ‫که‬‫های‬ ‫دایره‬
.‫است‬ ‫نشده‬ ‫مشخص‬ ‫رنگ‬ ‫زرد‬
14
‫گام‬‫دهم‬‫مقدار‬ :Edge Threshold.‫دهیم‬ ‫می‬ ‫کاهش‬ ‫را‬
‫مقدار‬‫پارامتر‬Edge Threshold‫بین‬‫و‬ ‫است‬ ‫یک‬ ‫و‬ ‫صفر‬
‫د‬ ‫تشخیص‬‫که‬ ‫ای‬‫دایره‬‫که‬ ‫آنجایی‬ ‫از‬‫کنتراس‬ ‫است‬‫نشده‬ ‫اده‬‫ت‬
‫دارد‬ ‫پایینی‬‫ضعیف‬ ‫های‬ ‫لبه‬ ‫و‬‫نزدیک‬ ‫ما‬ ‫عدد‬ ‫است‬ ‫بهتر‬ ‫دارد‬ ‫ی‬
‫ما‬ ‫اینجا‬ ‫در‬ ‫که‬ ‫باشد‬ ‫صفر‬ ‫به‬0.1.‫کردیم‬ ‫انتخاب‬ ‫را‬
15
‫در‬‫ای‬‫را‬ ‫برنامه‬ ‫کل‬ ‫نجا‬‫مشاهد‬:‫کنید‬ ‫می‬ ‫ه‬
Mehrdad Izadi
January 2018
IZADIMEHRDAD4@GMAIL.COM
16
Reference
https://www.mathworks.com

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

تشخیص دایره در متلب

  • 1. 1 ‫افزار‬ ‫نرم‬ ‫در‬ ‫دایره‬ ‫تشخیص‬MATLAB ‫اول‬ ‫گام‬‫تصویر‬ ‫گذاری‬ ‫بار‬ :
  • 2. 2 ‫دوم‬ ‫گام‬‫تعیین‬ :‫ی‬ ‫محدوده‬‫شعاع‬‫جستجو‬ ‫برای‬‫ی‬‫ه‬ ‫حلقه‬‫ا‬ ‫کدام‬ ‫هر‬ ‫که‬ ‫دارد‬ ‫وجود‬ ‫مختلفی‬ ‫رنگی‬ ‫های‬ ‫دایره‬ ‫اینجا‬ ‫در‬ ‫زمینه‬ ‫پس‬ ‫به‬ ‫نسبت‬(‫کنتراست‬contrast.‫دارند‬ ‫متفاوتی‬ ) ‫قرمز‬ ‫و‬ ‫آبی‬ ‫های‬ ‫رنگ‬‫زمینه‬ ‫پس‬ ‫این‬ ‫در‬‫زیادی‬ ‫کنتراست‬ ‫و‬ ‫دارند‬‫خوبی‬ ‫کنتراست‬ ‫زمینه‬ ‫پس‬ ‫با‬ ‫زرد‬ ‫های‬ ‫دایره‬ ‫از‬ ‫بعضی‬ .‫ندارند‬‫روی‬ ‫همچنین‬ ‫و‬ ‫ها‬ ‫دایره‬ ‫این‬ ‫مرزهای‬ ‫بودن‬ ‫نزدیک‬ ‫ها‬ ‫دایره‬ ‫این‬ ‫تعیین‬ ‫های‬ ‫چالش‬ ‫از‬ ‫یکی‬ ‫دیگر‬ ‫برخی‬ ‫افتادن‬ ‫هم‬ .‫است‬ ‫ها‬ ‫دایره‬ ‫باید‬ ‫که‬ ‫شعاع‬ ‫ی‬ ‫محدوده‬ ‫که‬ ‫داریم‬ ‫نیاز‬ ‫روش‬ ‫این‬ ‫در‬ ‫ر‬.‫بیابیم‬‫را‬‫کنیم‬‫پیدا‬‫آن‬‫در‬‫ا‬‫م‬‫این‬‫کردن‬‫پیدا‬‫برای‬ ‫دراینجا‬‫قدار‬ ‫دستور‬ ‫از‬imdistline.‫کنیم‬ ‫می‬ ‫استفاده‬
  • 3. 3 ‫ی‬ ‫محدوده‬ ‫در‬ ‫ها‬ ‫دایره‬ ‫بیشتر‬23-21‫در‬ .‫دارند‬ ‫قرار‬ ‫پیکسل‬ ‫را‬ ‫محدوده‬ ‫شعاعی‬ ‫ی‬ ‫محدوده‬ ‫از‬ ‫اطمینان‬ ‫برای‬ ‫ما‬ ‫اینجا‬25- 20.‫گیریم‬ ‫می‬ ‫نظر‬ ‫در‬‫آن‬ ‫از‬ ‫قبل‬ ‫فقط‬imdistline‫حذف‬ ‫را‬ .‫کنیم‬ ‫می‬
  • 4. 4
  • 5. 5 ‫ها‬ ‫دایره‬ ‫یافتن‬ ‫برای‬ ‫تالش‬ ‫اولین‬ : ‫سوم‬ ‫گام‬ ‫قبل‬‫از‬‫شعاعی‬ ‫ی‬ ‫محدوده‬ ‫با‬ ‫ها‬ ‫دایره‬ ‫کردن‬ ‫پیدا‬25-20 ‫پیکسل‬‫؛‬‫زمینه‬‫پس‬‫از‬‫ها‬‫دایره‬‫آیا‬‫که‬‫کنیم‬‫بررسی‬‫است‬ ‫خوب‬ ‫استفاده‬ ‫با‬ ‫سوال‬ ‫این‬ ‫به‬ ‫پاسخ‬ ‫برای‬ ‫هستند؟‬ ‫تر‬ ‫تیره‬ ‫یا‬ ‫تر‬ ‫روشن‬ ‫دستور‬ ‫از‬rgb2gray.‫کنیم‬ ‫می‬ ‫سفید‬ ‫و‬ ‫سیاه‬ ‫را‬ ‫تصویر‬
  • 6. 6 ‫دایره‬ ‫از‬ ‫تر‬ ‫روشن‬ ً‫ال‬‫کام‬ ‫زمینه‬ ‫پس‬ ‫است‬ ‫مشخص‬ ‫که‬ ‫همانطور‬ ‫بنابراین‬ ‫است‬ ‫ها‬‫فرض‬ ‫پیش‬ ‫طور‬ ‫به‬imfindcircles‫دایره‬ ‫زمینه‬ ‫پس‬ ‫از‬ ‫که‬ ‫ای‬‫بنابراین‬ .‫کند‬ ‫می‬ ‫پیدا‬ ‫را‬ ‫است‬ ‫تر‬ ‫روشن‬ ‫پارامتر‬ ‫اینجا‬ ‫در‬ObjectPolarity‫به‬ ‫را‬dark‫می‬ ‫تنظیم‬ .‫کنیم‬ .‫است‬ ‫نشده‬ ‫داده‬ ‫ما‬ ‫به‬ ‫خروجی‬ ‫بینید‬ ‫می‬ ‫که‬ ‫همانطور‬‫این‬ ‫و‬ ‫اتفاق‬ ‫اغلب‬ ‫این‬ ‫و‬ .‫است‬ ‫نشده‬ ‫یافت‬ ‫ای‬ ‫حلقه‬ ‫هیچ‬ ‫اینکه‬ ‫یعنی‬ ‫افتد‬ ‫می‬‫زیرا‬imfindcircles‫ساز‬ ‫آشکار‬ ‫از‬ ‫بسیاری‬ ‫مانند‬ ‫ها‬.‫است‬ ‫داخلی‬ ‫شناسایی‬ ‫آستانه‬ ‫دارای‬‫در‬Imfindcircles ‫پارامتر‬sensitivity‫را‬‫داخلی‬ ‫حساسیت‬ ‫کنترل‬ ‫برای‬‫وجو‬‫د‬ ‫تر‬ ‫پایین‬ ‫آستانه‬ ‫باشد‬ ‫باالتر‬ ‫حساسیت‬ ‫چقدر‬ ‫هر‬ ‫اینجا‬ ‫در‬ .‫دارد‬ .‫شود‬ ‫می‬ ‫داده‬ ‫تشخیص‬ ‫بیشتری‬ ‫های‬ ‫دایره‬ ‫و‬ ‫است‬
  • 7. 7 ‫همانطور‬‫نداریم‬ ‫خروجی‬ ‫کنید‬ ‫می‬ ‫مشاهده‬ ‫که‬ ‫حساسیت‬ ‫افزایش‬ : ‫چهارم‬ ‫گام‬ ‫است‬ ‫یک‬ ‫و‬ ‫صفر‬ ‫بین‬ ‫عددی‬ ‫حساسیت‬‫ف‬ ‫پیش‬ ‫طور‬ ‫به‬ ‫که‬‫رض‬ 0.85‫را‬ ‫حساسیت‬ ‫اینجا‬ ‫در‬ ‫ما‬ .‫است‬0.9.‫کنیم‬ ‫می‬
  • 8. 8 ‫بار‬ ‫این‬.‫است‬ ‫کرده‬ ‫پیدا‬ ‫را‬ ‫دایره‬ ‫هشت‬
  • 9. 9 ‫ها‬ ‫دایره‬ ‫رسم‬ : ‫پنجم‬ ‫گام‬ ‫هم‬‫انطور‬‫هنوز‬ ‫کنید‬ ‫می‬ ‫مشاهده‬ ‫که‬‫تشخیص‬ ‫ها‬ ‫دایره‬ ‫همه‬ ‫اند‬ ‫نشده‬ ‫داده‬‫بنابراین‬ .‫را‬ ‫حساسیت‬ ‫بهتر‬ ‫نتیجه‬ ‫برای‬0.92 .‫کنیم‬ ‫می‬
  • 10. 10
  • 11. 11 ‫گام‬‫ُد‬‫ت‬‫م‬ ‫از‬ ‫استفاده‬ : ‫ششم‬Two-Stage‫کردن‬ ‫پیدا‬ ‫برای‬ ‫دایره‬
  • 12. 12 ‫گام‬‫بع‬ ‫چرا‬ : ‫هفتم‬‫تشخیص‬ ‫هنوز‬ ‫ها‬ ‫دایره‬ ‫از‬ ‫ضی‬‫نشد‬ ‫داده‬‫ه‬ ‫اند‬‫؟‬ ‫دایره‬‫پا‬ ‫کنتراست‬ ‫علت‬ ‫به‬ ‫زرد‬ ‫های‬‫یین‬‫نی‬ ‫تشخیص‬ ‫قابل‬.‫ستند‬ ‫ولی‬‫که‬ ‫همانطور‬‫بین‬ ‫می‬ ‫هم‬ ‫زیر‬ ‫شکل‬ ‫در‬‫از‬ ‫ها‬ ‫دایره‬ ‫این‬ ‫ید‬ ‫بنابراین‬ .‫هستند‬ ‫تر‬ ‫روشن‬ ‫زمینه‬ ‫پس‬‫ب‬‫ه‬‫جای‬‫کلمه‬dark‫ا‬‫ز‬ bright.‫کنیم‬ ‫می‬ ‫استفاده‬
  • 13. 13 ‫همانطور‬‫از‬ ‫یکی‬ ‫هم‬ ‫هنوز‬ ‫کنید‬ ‫می‬ ‫مشاهده‬ ‫که‬‫های‬ ‫دایره‬ .‫است‬ ‫نشده‬ ‫مشخص‬ ‫رنگ‬ ‫زرد‬
  • 14. 14 ‫گام‬‫دهم‬‫مقدار‬ :Edge Threshold.‫دهیم‬ ‫می‬ ‫کاهش‬ ‫را‬ ‫مقدار‬‫پارامتر‬Edge Threshold‫بین‬‫و‬ ‫است‬ ‫یک‬ ‫و‬ ‫صفر‬ ‫د‬ ‫تشخیص‬‫که‬ ‫ای‬‫دایره‬‫که‬ ‫آنجایی‬ ‫از‬‫کنتراس‬ ‫است‬‫نشده‬ ‫اده‬‫ت‬ ‫دارد‬ ‫پایینی‬‫ضعیف‬ ‫های‬ ‫لبه‬ ‫و‬‫نزدیک‬ ‫ما‬ ‫عدد‬ ‫است‬ ‫بهتر‬ ‫دارد‬ ‫ی‬ ‫ما‬ ‫اینجا‬ ‫در‬ ‫که‬ ‫باشد‬ ‫صفر‬ ‫به‬0.1.‫کردیم‬ ‫انتخاب‬ ‫را‬
  • 15. 15 ‫در‬‫ای‬‫را‬ ‫برنامه‬ ‫کل‬ ‫نجا‬‫مشاهد‬:‫کنید‬ ‫می‬ ‫ه‬ Mehrdad Izadi January 2018 IZADIMEHRDAD4@GMAIL.COM