- Visual Media Processing Using Matlab Beginner's Guide
- George Siogkas
- 218字
- 2021-08-06 16:37:58
Enlarging and shrinking a region of interest
A very common technique for refining a region of interest derived using thresholding is either enlarging or shrinking it to fit our target size. This can be accomplished by the morphological operations called dilation and erosion, respectively. These operations can be implemented in MATLAB using their respective functions, intuitively named imdilate
and imerode
.
Explaining and analyzing the mathematical properties of dilation and erosion lie beyond the scope of this book. We will instead explain their significance using practical examples that demonstrate their importance for image processing. The basic idea that you have to understand before we start, is that the two operations can be used for enlarging or shrinking an ROI (denoted by the instances of 1 in the image) using a structuring element. Structuring elements can be small binary images generated by the user either arbitrarily (placing the instances of 1 and 0 in a small image), or by using the strel
function. The choice of a structuring element should be made following two simple rules:
- The larger the structuring element, the larger the enlarging/shrinking factor
- Using a structuring element more similar to the shape of the ROI will typically give you a better result
Let's dive right in, to understand the physical meaning of all these concepts in practice.
- Aftershot Pro:Non-destructive photo editing and management
- 深入理解Spring Cloud與實戰(zhàn)
- 計算機應用與維護基礎教程
- Hands-On Machine Learning with C#
- 分布式系統(tǒng)與一致性
- Large Scale Machine Learning with Python
- Rapid BeagleBoard Prototyping with MATLAB and Simulink
- SiFive 經(jīng)典RISC-V FE310微控制器原理與實踐
- Hands-On Artificial Intelligence for Banking
- Source SDK Game Development Essentials
- Managing Data and Media in Microsoft Silverlight 4:A mashup of chapters from Packt's bestselling Silverlight books
- Istio服務網(wǎng)格技術解析與實踐
- 新編電腦組裝與硬件維修從入門到精通
- 計算機電路基礎(第2版)
- Drupal Rules How-to