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

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.

主站蜘蛛池模板: 岢岚县| 芜湖市| 建昌县| 固阳县| 犍为县| 永州市| 聂荣县| 安岳县| 阳原县| 鸡东县| 襄樊市| 社旗县| 洛川县| 莫力| 左权县| 鄂尔多斯市| 普洱| 长泰县| 寿光市| 琼海市| 宁河县| 甘德县| 桓仁| 毕节市| 保靖县| 双鸭山市| 托克逊县| 威信县| 常德市| 靖宇县| 乃东县| 荣昌县| 高青县| 红河县| 佳木斯市| 六安市| 通城县| 西贡区| 定南县| 连州市| 平凉市|