"Fossies" - the Fresh Open Source Software Archive

Member "sip-0.12.1/macros/test_dewarp.sce" (19 Aug 2012, 362 Bytes) of package /linux/privat/sip-0.12.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Scilab source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 chdir(SIPDIR + 'images');
    2 //grayscale image
    3 Img  = gray_imread('chapter.jpg');
    4 Img1 = dewarp(Img);
    5 
    6 //True Color image
    7 img  = imread('chapter.jpg');
    8 img1 = dewarp(img);
    9 
   10 //Indexed image
   11 [im,map]   = imread('chapter.png');
   12 [im1,map1] = dewarp(im,map);
   13 
   14 //The above functions works for all the
   15 //three types of image and has been tested.
   16 chdir(SIPDIR + 'macros');