One dimensional sieve introduction: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
|width="20%"| [[Image:3D extrema thumb.gif|100px|AAMToolbox]] | |width="20%"| [[Image:3D extrema thumb.gif|100px|AAMToolbox]] | ||
|'''Consider a signal''', <math>X</math><br> | |'''Consider a signal''', <math>X</math><br> | ||
X=getData('PULSES3WIDE') | X=getData('PULSES3WIDE') | ||
>blue X=0 5 5 0 0 1 1 4 3 3 2 2 1 2 2 2 1 0 0 0 1 1 0 3 2 0 0 0 6 0 0 | >blue X=0 5 5 0 0 1 1 4 3 3 2 2 1 2 2 2 1 0 0 0 1 1 0 3 2 0 0 0 6 0 0 | ||
|} | |} | ||
{| border="0" cellpadding="5" cellspacing="5" | {| border="0" cellpadding="5" cellspacing="5" | ||
Line 14: | Line 14: | ||
|[[Image:IllustrateSIV_1_02.png|400px]] | |[[Image:IllustrateSIV_1_02.png|400px]] | ||
|} | |} | ||
=<span style="color:Chocolate">Filter</span>= | =<span style="color:Chocolate">Filter</span>= | ||
====Linear==== | ====Linear==== |
Revision as of 10:10, 15 November 2013
1D Signals
Matlab function IllustrateSIV_1 illustrates how MSERs (maximally stable extremal regions) and sieves are related. We start with one dimensional signals before moving to two dimensional images and three dimensional volumes.
Consider a signal, <math>X</math>X=getData('PULSES3WIDE') >blue X=0 5 5 0 0 1 1 4 3 3 2 2 1 2 2 2 1 0 0 0 1 1 0 3 2 0 0 0 6 0 0 |
Filter
Linear
A linear Gaussian filter with <math>\sigma=2</math> attenuates extrema without introducing new ones. But blurring may be a problem. |
h=fspecial('Gaussian',9,2); Y=conv(X,(h(5,:)/sum(h(5,:))),'same');
Non-linear
scaleA=1; Y1=SIVND_m(X,scaleA,'o');
scaleB=2; Y2=SIVND_m(X,scaleB,'o');