Discussion:
[Scilab-users] command Scilab/Matlab
daniel souza
2013-12-13 01:26:33 UTC
Permalink
Hi,

These line are Matlab:

indata=inputdlg({'input filename'});
a = imread(indata{1});

How can I write these lines in scilab?

Thanks.
--
Daniel de Souza Santos
Professor de Física
UFRPE - UAST
(81) 9988 6670
(87) 8855 3970
Dang, Christophe
2013-12-13 08:07:33 UTC
Permalink
Hello,
De : daniel souza
Envoyé : vendredi 13 décembre 2013 02:27
indata=inputdlg({'input filename'});
a = imread(indata{1});
How can I write these lines in scilab?
I don't know much Mtlab, but from its documentation
http://www.mathworks.fr/fr/help/matlab/ref/imread.html
it seems you want to read an image.

There are several modules dedicated to picture processing, see
http://atoms.scilab.org/categories/Image_Processing

You may look at

* SIP (Scilab Image Processing toolbox),
* SIVP (Scilab Image and Video Processing toolbox) or
* IPD (Image Processing Design toolbox)

depending on what you want to do.

With SIP and SIVP:
image = imread("file_name")
imshow(image)

With IPD:
image = ReadImage("file_name")
ShowImage(image)

Hope this helps

regards
--
Christophe Dang Ngoc Chan
Mechanical calculation engineer

______________________________________________________________________

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
______________________________________________________________________
Paul Bignier
2013-12-13 08:11:52 UTC
Permalink
Hi,

To open a mesagebox asking for the file name:

<http://help.scilab.org/docs/5.4.1/en_US/x_dialog.html>
indata=x_dialog("input filename", "default name");

Help page for x_dialog:
http://help.scilab.org/docs/5.4.1/en_US/x_dialog.html

Then look for SIVP toolbox in ATOMS for imread().

Regards,
Paul
Post by daniel souza
Hi,
indata=inputdlg({'input filename'});
a = imread(indata{1});
How can I write these lines in scilab?
Thanks.
--
Daniel de Souza Santos
Professor de Física
UFRPE - UAST
(81) 9988 6670
(87) 8855 3970
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Paul BIGNIER
Scilab Engineer & Xcos Developer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com
Continue reading on narkive:
Loading...