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

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.

主站蜘蛛池模板: 陵川县| 无锡市| 郧西县| 息烽县| 九龙县| 淳化县| 白水县| 无为县| 行唐县| 沐川县| 静安区| 大化| 兴仁县| 平武县| 济阳县| 吉木乃县| 察哈| 噶尔县| 拉孜县| 江永县| 廊坊市| 礼泉县| 太保市| 许昌市| 吴忠市| 九龙坡区| 福建省| 获嘉县| 道孚县| 页游| 临桂县| 达日县| 凉城县| 临安市| 岳西县| 黄浦区| 镶黄旗| 北宁市| 日土县| 留坝县| 新干县|