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

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.

主站蜘蛛池模板: 赤城县| 杭州市| 枞阳县| 林周县| 香格里拉县| 昌邑市| 利辛县| 乌拉特中旗| 旅游| 水富县| 东乌珠穆沁旗| 武义县| 桦南县| 渭源县| 简阳市| 如东县| 海口市| 松原市| 南涧| 武夷山市| 宜君县| 福安市| 团风县| 谢通门县| 凤冈县| 城固县| 剑川县| 安国市| 金塔县| 如皋市| 齐河县| 介休市| 珲春市| 汽车| 北票市| 婺源县| 宁乡县| 南丹县| 永平县| 确山县| 开远市|