官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 黑山县| 田林县| 辽阳市| 巴楚县| 图木舒克市| 霸州市| 台山市| 孟村| 江西省| 枝江市| 玉树县| 民乐县| 社会| 东乡| 乐至县| 荥经县| 元江| 嘉兴市| 敖汉旗| 龙口市| 鄂尔多斯市| 如皋市| 阿坝县| 大埔区| 夏津县| 包头市| 马山县| 仪征市| 龙州县| 阿拉尔市| 全椒县| 象山县| 闸北区| 莱州市| 台山市| 阿鲁科尔沁旗| 克山县| 双城市| 巩留县| 赞皇县| 台北县|