Thursday, March 29, 2012

Reading an image in SCILAb

The imread command is used to read an image into SCILAB  (Remember that SIVP must be loaded).


Z= imread('C:\Documents and Settings\Administrator\Desktop\images\lena.jpg');

will read the image into a matrix Z.

If the image is  colour image,The size will be  something like.


256.    256.    3.

here 256x256 is the size of the image. And the matrix will be composed of three 2D matrices each of dimension 256x256, representing the RGB values.

Also imshow(Z)  displays the image. as shown above.

12 comments:

  1. Hi,I am using Fedora 20.
    During loading of SIVP following error occured.
    "atomsLoad: An error occurred while loading 'SIVP-0.5.3.1-2':
    link: The shared archive was not loaded: libschroedinger-1.0.so.0: cannot open shared object file: No such file or directory
    ans =

    []"
    please rply with solution

    ReplyDelete
    Replies
    1. http://scilabimge.blogspot.com/2012/10/sivp-on-linux-ubuntu.html?utm_source=BP_recent

      Delete
    2. I hVe commented on the issues earlier please see that.

      Delete
  2. Undefined variable: readimage
    at line 2 of exec file called by :
    exec('C:\Users\Administrator\Documents\ima', -1)


    -->exec('C:\Users\Administrator\Documents\ima', -1)
    esktop\images\elephant.bmp')
    !--error 4
    Undefined variable: imread
    at line 2 of exec file called by :
    exec('C:\Users\Administrator\Documents\ima', -1) i got error

    ReplyDelete
    Replies
    1. Imread must be enabled by loading the appropriate module .

      Delete
  3. Hi,
    Do i need to install OpenCV in order to use SIVP?

    ReplyDelete
  4. For scilab 6.0 you should use atomsInstall("IPCV") instead.

    ReplyDelete
  5. I am using Scilab 6.1.0 and have installed the IPCV toolbox. I wish to read a jpg image, so I use the command z=imread('dummy.jpg') and I get the message SWIG/Scilab: RuntimeError: the module is not initialized

    help

    ReplyDelete
  6. Sands Casino at Wynn, Las Vegas | Official Website
    Experience the hospitality of Las Vegas, 샌즈카지노 Nevada with Sands Casino at Wynn Las Vegas, a premier resort destination deccasino for 제왕 카지노 entertainment, dining,

    ReplyDelete