| Home Introduction User's Guide Download

| Function References: |  |

| SIP Functions We summarize almost all SIP functions used in V.I.P.Scilab. Here we just list the functions used under Linux. ¡¡¡¡¡¡1. bwborder ¡¡¡¡¡¡2. dilate & erode ¡¡¡¡¡¡3. edilate
¡¡¡¡¡¡4. gsm2d
¡¡¡¡¡¡5. hough & ihough
¡¡¡¡¡¡6. im2bw
¡¡¡¡¡¡7. imconv
¡¡¡¡¡¡8. imnoise
¡¡¡¡¡¡9. imread
¡¡¡¡¡¡10. imshow
¡¡¡¡¡¡11. minmax
¡¡¡¡¡¡12. mkfilter
¡¡¡¡¡¡13. thin
¡¡¡¡¡¡14. edge
¡¡¡¡¡¡15. mogrify

1.bwborder: B=bwborder(image,conn)

Function bwborder extracts contours from binary images by detecting which pixel valued 1 has at least one neighbor valued 0. The parameter ¡°conn¡± defaulting to 8 depends if the detection is to be made in 4- or 8- neighborhood.

top

2.bilate&Erode: E=dilate(image,[SE,center]),E=erode(image,[SE,center])

We all know what dilate and erode does. The two functions are used for binary images, and they have SE(standing for structure element) and center as their two parameters. ¡°center¡± indicates the origin of structuring element.

top

3.edilate: E=edilate(image,[radius,form])

Function edilate euclideans morphological dilation of binary images. ¡°form¡± determines the size of the output of the function. ¡°radius¡± indicates the radius of circular Euclidean structuring element to be used.

top

4.gsm2d: MG=gsm2d(image [,sigma])

Function gsm2d performs 2D Gaussian smoothing of the intensity image.The parameter ¡°sigma¡± defaulting to 5 defines the standard deviation of the Gaussian kernel.

top

5.hough&ihough: ht=hough(image) , Im=ihough(ht,dims)

Function hough calculates the hough transform of a binary image while ihough inverses hough transform. Usually the output of hough function is used for other functions. In our ¡°visual SIP¡± ,it is just a demo using hough, ihough and other simple functions to process the image. ¡°dims¡± is a vector with the size of the output image.

top

6.im2bw : BW = im2bw(Index, map, level)

Function im2bw coverts RGB images ,indexed images and grayscale intensity images to binary by thresholding . The parameter ¡°level¡± defines the threshold level between 0 and 1.

top

7.imconv: Outm=imconv(image,mask[,form])

Function imconv performs 2D spatial convolution of a grayscale image and a mask. The parameter ¡°form¡± determines the size of outm. ¡°mask¡± defines the spatial convolution kernel which can be obtained from the mkfilter function.

top

8.imnoise: IM=imnoise(image,type[,parameters])

Function imnoise generates noise. In ¡°visual SIP¡± three types of noise can be added to the intensity image.

top

9.imread : [image,map]=imread(filename)

Function imread reads BMP ,GIF, JPEG ,PNG ,PCX ,TIFF ,XPM and even more types of image files into scilab. When it's an indexed image, ¡°map¡± is a Mx3 matrix containing the image colormap, otherwise it's [] for truecolormap and 2 for binary image.

top

10.imshow : imshow(image,map)

Function imshow displays the image.

top

11.minmax: Output=minmax(image,[Nsteps,Stepsize,Adapt,NAT,Intmasksize,Extmasksize])

Function minmax filters a gray-scale image using curvature-guided surface evolution. There are six parameters. ¡°Nsteps¡± defines the number of steps to perform; ¡°Stepsize¡± defines the step increment for the iterative procedure. ¡°Adapt¡± indicates if the algorithm should adapt itself to the local image gray level or if it considers the NAT value for defining light and dark regions. ¡°NAT¡± defines the threshold value . ¡°IntMaskSize¡± and ¡°ExtMaskSize¡± indicates the size of the internal and external window in which curvature values will be taken into account for deciding Min or Max curvature flow respectively.

top

12.mkfilter: Mask=mkfilter(name)

Function mkfilter builds filter ¡°masks¡±. ¡°name¡± indicates the name of the filter mask.

top

13.thin: out=thin(image)

Function thin performs thinning of binary objects.

top

14.edge: E=edge(image[,method,thresh,direction])

Function edge performs edge detection on a grayscale intensity image. ¡°method¡±, ¡±thresh¡± and ¡±directon¡± are setted to determines the method,the threshold level and the direction to compute the image.

top

15.mogrify: [imout(,map)]=mogrify(image,argv)

It's a direct C-language interface to ImageMagick, doing many image processing operations. When defining argv, you can choose any kinds of parameters follow behind. There are more arguments in function mogrify, which can be checked out in SIP files for Linux version.

¡¡¡¡¡¡blur : blur the image with a Gaussian operator.
¡¡¡¡¡¡border : surround the image with a border of color specified in ¨Cbordercolor
¡¡¡¡¡¡channel : extract a particular channel from the image
¡¡¡¡¡¡colorize : colorize the image with the pen color
¡¡¡¡¡¡contrast : enhance or reduce the image contrast
¡¡¡¡¡¡emboss : emboss an image
¡¡¡¡¡¡flop : c reate a mirror image
¡¡¡¡¡¡gamma : level of gamma correction
¡¡¡¡¡¡geometry : prefer size and location of the image window
¡¡¡¡¡¡implode : implode image pixels about the center
¡¡¡¡¡¡monochrome : transform the image to black and white
¡¡¡¡¡¡negate : replace every pixel with its complementary color
¡¡¡¡¡¡paint : simulate an oil painting
¡¡¡¡¡¡raise : lighten or darken image edges
¡¡¡¡¡¡rotate : apply paeth image rotation to the image
¡¡¡¡¡¡sharpen : sharpen the image
¡¡¡¡¡¡shear : shear the image along the x or y axis
¡¡¡¡¡¡solarize : negate all pixels above the threshold level
¡¡¡¡¡¡swirl : swirl image pixels about the center
¡¡¡¡¡¡wave : alter an image along a sine wave

top

Entry
Home Introduction User's Guide
Function Reference
SIP Functions New Image Func Video Functions
Developer's Guide
Graphical Display Video Processing Modified Functions GUI
Demo
Image Processing Video Processing
Support
Future Work Known Bugs FAQ Acknowledgement About Us

|  |  | About Us | Contact Us | Our University Copyright © 2004-2005 Scilab group of Xiamen University, China |  |