Determine whether filter coefficients are separable
S = isfilterseparable(H)
[S, HCOL, HROW]
= isfilterseparable(H)
takes
in the filter kernel S
= isfilterseparable(H
)H
and returns 1
(true)
when the filter is separable, and 0
(false) otherwise.
[
uses the filter
kernel, S
, HCOL
, HROW
]
= isfilterseparable(H
)H
, to return its vertical coefficients HCOL
and
horizontal coefficients HROW
when the filter
is separable. Otherwise, HCOL
and HROW
are
empty.







Logical variable that is set to 
Determine if the Gaussian filter created using the fspecial
function is separable.
% Create a gaussian filter two_dimensional_filter = fspecial('gauss'); % Test with isfilterseparable [isseparable, hcol, hrow] = ... isfilterseparable(two_dimensional_filter)
When you run this example, notice that hcol
*hrow
equals
the two_dimensional_filter
. This result is expected
for a Gaussian filter.
2D FIR Filter  rank
 svd