Can't find Simulink block to perform blurring. May be it is intended to construct this functionality from existing blocks?
But straight approaches failed for me.
For example, the following model
causes an error
The dimension dependency rule specified for 'Test_Blur/2-D Convolution' is invalid. The input port 2 cannot have a fixed-size mode.
UPDATE
Matlab contains strange, hanging-in-the-air example vipeffects_win
, which contains block named Effects
but it does not work out of the box due to absence of 'imgSize` function.
fspecial
function, however, returns a 2-D filter, which I understand needs to be used withimfilter
. Maybe that's the source of the error? – am304fspecial
result is just a matrix, which I treat as convolution kernel – Suzan CiocimgSize
function used in the demo model? It might be worth checking the model callbacks in the demo to see if it gets defined there. – am304