<< perim SIP - Scilab Image Processing Toolbox poledetection >>

SIP - Scilab Image Processing Toolbox >> SIP - Scilab Image Processing Toolbox > pifilter

pifilter

Pi filter for phased images

Calling Sequence

filtered_image = pifilter(image[,filter_name])

Parameters

image
A gray image (normally a phased image).
filter_name
A low-pass filter. It can be 'mean' or 'low-pass' (see mkfilter). Default is 'mean'.

Description

Filters a phased image before unwrapping it. The purpose is to keep the phase jumps sharp: a convolution by a lowpass kernel would be catastrophic, because it would smooth these jumps, causing the demodulation algorithm to fail.

Principle:

This function uses the mkfilter and imconv functions. Reasonable kernels are: 'low-pass' and 'mean'. A high-pass filter would make no sense as it would burst noise !

You can use pifilter for ordinary grayscale images to smooth them without loosing the edges. This filter is similar to the median filter, but will leave edges even stronger. However, the noise will more often not be removed; just attenuated.

Examples

a=gray_imread(SIPDIR+'images/photonics/pyramide_noisy.jpg');
xset("window",0);clf;
imshow(a);
improfile(a);//to visualise profiles
b=pifilter(a);
xset("window",1);clf;
imshow(b);
improfile(b);//jumps are still well visible and other parts are smoothed

Authors

Availability

The latest version of the Scilab Image Processing toolbox can be found at

http://siptoolbox.sourceforge.net

See Also


<< perim SIP - Scilab Image Processing Toolbox poledetection >>