I want to know if the morphology dilation is only working with a structuring element whose size is 3x3 only?
If it is working with any stucturing element size, how to configure a structuring element of size 9x9?
The morphology dilation in Image Processing Toolbox works only with a structuring element of 3x3. It is not configurable for any size.
Although its not possible to get a 9x9 kernel which produces same (read bitexact) result with a 3x3 kernel, but its possible to get equivalent results.
For example, lets say you want to do a 9x9 Gaussian filtering with sigma of 2.5, its possible to use a cascade of two Gaussian filters of 3x3 filters, with sigma of 1.0 and 1.5. This would get you similar (not same) as a 9x9.
Same way, you can cascade, 2/3 3x3 morphology filters to get similar effect as 9x9.
If you are ok with this, you could try out and see if it gives a similar effect to your 9x9 dilation.
Retrieving data ...