[Scilab-users] Video Player in Scilab

2016-06-16 Thread Shamika Mohanan
Hello,

We are building a computer vision toolbox which requires developing a video
player.

We developed imshow using Matplot and then looped imshow over the number of
frames in the video to play the video. This method makes the video player
very slow. Is there any other way to play a video in Scilab using any
scripting tool/ GUI developer? Any leads would be appreciated.

Shamika
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] vectorization issue

2016-06-16 Thread paul . carrico
Dear, 

I failed in using 100% vectorization in the following example (and I don't 
remember how to proceed) ; I spent a lot of time in testing things ... 


... what is the correct sentence for vecteur2 


Thanks for the help 


Paul 


##
 
mode ( 0 ) t = 0 : 0.1 : %pi ; [ l , n ] = size ( t ) ; mat_sin = [ t ' sin ( t 
' ) ] ; 
scalaire = intsplin ( mat_sin ( : , 1 ) , mat_sin ( : , 2 ) ) ; // with a loop 
vecteur = zeros ( n - 1 , 2 ) ; for j = 2 : n vecteur ( j - 1 , : ) = [ mat_sin 
( j - 1 , 1 ) intsplin ( mat_sin ( [ 1 : j ] , 1 ) , mat_sin ( [ 1 : j ] , 2 ) 
) ] ; end plot2d ( vecteur ( : , 1 ) , vecteur ( : , 2 ) ) pause // pure 
vectorisation i = [ 1 : n ] ' j = [ 2 : n ] ' vecteur2 = zeros ( n - 1 , 2 ) ; 
vecteur2 = [ mat_sin ( i , 1 ) intsplin ( mat_sin ( [ 1 : j ] , 1 ) , mat_sin ( 
[ 1 : j ] , 2 ) ) ] ___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] unit tests and help generation for overloaded unary/binary operators

2016-06-16 Thread Samuel Gougeon

Hello Philippe,

AFAIR, XML filenames must not have the "%" character. Moreover, xml ids 
must exclude it as well.
So, if the xml id of the page is currently "%bigint_o_bigint", you 
should rather choose something like

"bigint_equal_bigint" instead.

help generation and unit tests are completely independent from each other.

Le 16/06/2016 18:28, philippe a écrit :

Hi,

I'm writing a toolbox to handle "big integers" represented by a tlist
of type "bigint". In my "macros/" directory  I wrote my scilab functions
for bigint type  and overloaded unary and  binary operators (+,-,>,==,
...) for example %bigint_o_bigint  for bigint equality "=="  (see the
source code at the bottom of this message ). For each function I wrote,
I've created :

- a short help,  as a comment at the beginning of the *.sci file
- a test file "*.tst" placed in "/tests/unit_tests/" directory

I have some problems when I execute my builder.sce  :

if %bigint_o_bigint  function is stored in macros/%bigint_o_bigint.sci
and its unit test in tests/unit_tests/%bigint_o_bigint.tst  then I get
an error  during help generation (but unit_tests are OK) :

%
Génération du document maître :
/home/roux/Documents/informatique/scilab/bigint/help/en_US

Génération du fichier d'aide [javaHelp] in
/home/roux/Documents/informatique/scilab/bigint/help/en_US.
  !--error 999
buildDoc : Erreur pendant la génération de la documentation : no
protocol:
/home/roux/Documents/informatique/scilab/bigint/help/en_US/%bigint_o_bigint.xml.
at line 691 of function xmltoformat called by :
at line  17 of function xmltojar called by :
at line  51 of function tbx_build_help called by :
tbx_build_help(toolbox_title, help_lang_dir);
at line   7 of exec file called by :
%

if %bigint_o_bigint function is stored in macros/bigint_o_bigint.sci and
its unit test in tests/unit_tests/%bigint_o_bigint.tst  or
tests/unit_tests/bigint_o_bigint.tst   then I get the error  during
unit_tests (but online help is generated without problems  )

%%%
-->tbx_build_help_loader(toolbox_title, help_dir)

?? Why does this function run a unit test ??



TMPDIR = /tmp/SCI_TMP_420_E0z4Rx

001/001 - [.] :

001/009 - [.] bigint.failed:
premature end of the test script
002/009 - [.] bigint_o_bigintfailed:
premature end of the test script


[...]

TEST : [.] bigint_o_bigint
failed: premature end of the test script
Check the following file :
- /tmp/SCI_TMP_420_E0z4Rx/bigint_o_bigint.dia.tmp

Did you check it?

Or launch the following command :
-
exec("/home/roux/Documents/informatique/scilab/bigint/tests/unit_tests/bigint_o_bigint.tst");

Did you try it?

Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] unit tests and help generation for overloaded unary/binary operators

2016-06-16 Thread philippe
Hi,

I'm writing a toolbox to handle "big integers" represented by a tlist
of type "bigint". In my "macros/" directory  I wrote my scilab functions
for bigint type  and overloaded unary and  binary operators (+,-,>,==,
...) for example %bigint_o_bigint  for bigint equality "=="  (see the
source code at the bottom of this message ). For each function I wrote,
I've created :

- a short help,  as a comment at the beginning of the *.sci file
- a test file "*.tst" placed in "/tests/unit_tests/" directory

I have some problems when I execute my builder.sce  :

if %bigint_o_bigint  function is stored in macros/%bigint_o_bigint.sci
and its unit test in tests/unit_tests/%bigint_o_bigint.tst  then I get
an error  during help generation (but unit_tests are OK) :

%
Génération du document maître :
/home/roux/Documents/informatique/scilab/bigint/help/en_US

Génération du fichier d'aide [javaHelp] in
/home/roux/Documents/informatique/scilab/bigint/help/en_US.
 !--error 999
buildDoc : Erreur pendant la génération de la documentation : no
protocol:
/home/roux/Documents/informatique/scilab/bigint/help/en_US/%bigint_o_bigint.xml.
at line 691 of function xmltoformat called by :
at line  17 of function xmltojar called by :
at line  51 of function tbx_build_help called by :
tbx_build_help(toolbox_title, help_lang_dir);
at line   7 of exec file called by :
%

if %bigint_o_bigint function is stored in macros/bigint_o_bigint.sci and
its unit test in tests/unit_tests/%bigint_o_bigint.tst  or
tests/unit_tests/bigint_o_bigint.tst   then I get the error  during
unit_tests (but online help is generated without problems  )

%%%
-->tbx_build_help_loader(toolbox_title, help_dir)

   TMPDIR = /tmp/SCI_TMP_420_E0z4Rx

   001/001 - [.] :

   001/009 - [.] bigint.failed:
premature end of the test script
   002/009 - [.] bigint_o_bigintfailed:
premature end of the test script


[...]

   TEST : [.] bigint_o_bigint
   failed: premature end of the test script
   Check the following file :
   - /tmp/SCI_TMP_420_E0z4Rx/bigint_o_bigint.dia.tmp
   Or launch the following command :
   -
exec("/home/roux/Documents/informatique/scilab/bigint/tests/unit_tests/bigint_o_bigint.tst");

%%

same problem  with %bigint_o_bigint.tst

%


   001/009 - [.] %bigint_o_bigint...failed:
premature end of the test script

[]

   TEST : [.] %bigint_o_bigint
   failed: premature end of the test script
   Check the following file :
   - /tmp/SCI_TMP_420_E0z4Rx/%bigint_o_bigint.dia.tmp
   Or launch the following command :
   -
exec("/home/roux/Documents/informatique/scilab/bigint/tests/unit_tests/%bigint_o_bigint.tst");


how can I solve both problems ?

Philippe.

my %bigint_o_bigint code with help inside :


%%%
function [bool]=%bigint_o_bigint(x,y)
//
// Calling Sequence
//   x==y
//
// Parameters
//  x,y: bigint
//  bool : boolean
//
// Description
// bigint comparison
//
// Examples
// //
// x=bigint('123456789')
// y=bigint('0123456789')
// z=bigint('1234567890')
// x==y  // true
// x==z  // false
//
// See also
//  bigint
//
// Authors
//  Philippe Roux
//

x=check_bigint(x)
y=check_bigint(y)
bool=(x.signe==y.signe)&(and(x.rep==y.rep))
endfunction
%

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] scilab 6.0.0-beta-1 on Mac OS X El Capitan

2016-06-16 Thread Paul Bignier


Hello Peter,

Would you have more information about your issue?
Is it related to the reported bug 
?
Both betas work on my El Capitan, so it must be a configuration issue 
(external libs).


Regards,
Paul

On 06/16/2016 08:51 AM, cederholm wrote:

I just installed Scilab 6.0.0-beta-2-MacOSX on OSX v10.11.2 (El Capitan). The
problem seems to persist. Still no support for El Capitan?

Best Regards
Peter Cederholm




--
View this message in context: 
http://mailinglists.scilab.org/scilab-6-0-0-beta-1-on-Mac-OS-X-El-Capitan-tp4033887p4034205.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] scilab 6.0.0-beta-1 on Mac OS X El Capitan

2016-06-16 Thread cederholm
I just installed Scilab 6.0.0-beta-2-MacOSX on OSX v10.11.2 (El Capitan). The
problem seems to persist. Still no support for El Capitan?

Best Regards
Peter Cederholm




--
View this message in context: 
http://mailinglists.scilab.org/scilab-6-0-0-beta-1-on-Mac-OS-X-El-Capitan-tp4033887p4034205.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users