From ccf9047acb6f74a67a23659aeb21e6bee6940df7 Mon Sep 17 00:00:00 2001 From: ukashanoor Date: Fri, 7 Jul 2017 17:12:14 +0530 Subject: array declaration --- 2.3-1/demos/scilab2c.dem.gateway.sce | 4 +- 2.3-1/demos/test_dct.dem.sce | 18 ++ 2.3-1/demos/test_idct.dem.sce | 18 ++ 2.3-1/etc/scilab2c.start | 2 +- 2.3-1/help/en_US/master_help.xml | 142 +++++------ .../help/en_US/scilab_en_US_help/AVRADCSetup.html | 88 ------- .../help/en_US/scilab_en_US_help/AVRDigitalIn.html | 88 ------- .../en_US/scilab_en_US_help/AVRDigitalOut.html | 91 -------- .../scilab_en_US_help/AVRDigitalPortSetup.html | 89 ------- .../en_US/scilab_en_US_help/AVRDigitalSetup.html | 91 -------- .../en_US/scilab_en_US_help/AVRGetTimerValue.html | 83 ------- .../en_US/scilab_en_US_help/AVRPWM0SetDuty.html | 80 ------- .../help/en_US/scilab_en_US_help/AVRPWM0Setup.html | 98 -------- .../en_US/scilab_en_US_help/AVRPWM1SetDuty.html | 83 ------- .../help/en_US/scilab_en_US_help/AVRPWM1Setup.html | 100 -------- .../en_US/scilab_en_US_help/AVRPWM2SetDuty.html | 81 ------- .../help/en_US/scilab_en_US_help/AVRPWM2Setup.html | 97 -------- 2.3-1/help/en_US/scilab_en_US_help/AVRReadADC.html | 84 ------- 2.3-1/help/en_US/scilab_en_US_help/AVRSleep.html | 75 ------ .../en_US/scilab_en_US_help/AVRTimerSetup.html | 66 ------ .../en_US/scilab_en_US_help/AVRUARTReceive.html | 77 ------ .../help/en_US/scilab_en_US_help/AVRUARTSetup.html | 96 -------- .../en_US/scilab_en_US_help/AVRUARTTransmit.html | 77 ------ .../scilab_en_US_help/CV_AdaptiveThreshold.html | 94 -------- 2.3-1/help/en_US/scilab_en_US_help/CV_Blur.html | 96 -------- 2.3-1/help/en_US/scilab_en_US_help/CV_Canny.html | 95 -------- .../en_US/scilab_en_US_help/CV_CornerHarris.html | 98 -------- .../en_US/scilab_en_US_help/CV_CreateImage.html | 85 ------- .../help/en_US/scilab_en_US_help/CV_CvtColor.html | 90 ------- 2.3-1/help/en_US/scilab_en_US_help/CV_Dilate.html | 99 -------- .../scilab_en_US_help/CV_DistanceTransform.html | 87 ------- 2.3-1/help/en_US/scilab_en_US_help/CV_Erode.html | 99 -------- .../en_US/scilab_en_US_help/CV_GaussianBlur.html | 98 -------- .../en_US/scilab_en_US_help/CV_GetImgSize.html | 84 ------- .../help/en_US/scilab_en_US_help/CV_LoadImage.html | 88 ------- .../en_US/scilab_en_US_help/CV_MedianBlur.html | 86 ------- .../help/en_US/scilab_en_US_help/CV_SaveImage.html | 86 ------- .../help/en_US/scilab_en_US_help/CV_ShowImage.html | 86 ------- .../help/en_US/scilab_en_US_help/CV_Threshold.html | 90 ------- 2.3-1/help/en_US/scilab_en_US_help/CV_WaitKey.html | 83 ------- .../en_US/scilab_en_US_help/JavaHelpSearch/DOCS | Bin 2921 -> 3017 bytes .../scilab_en_US_help/JavaHelpSearch/DOCS.TAB | 3 +- .../en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS | Bin 133 -> 138 bytes .../scilab_en_US_help/JavaHelpSearch/POSITIONS | Bin 12644 -> 13421 bytes .../en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA | 2 +- .../en_US/scilab_en_US_help/JavaHelpSearch/TMAP | Bin 10240 -> 10240 bytes 2.3-1/help/en_US/scilab_en_US_help/index.html | 259 --------------------- 2.3-1/help/en_US/scilab_en_US_help/jhelpmap.jhm | 2 +- 2.3-1/help/en_US/scilab_en_US_help/jhelptoc.xml | 2 +- .../section_0da8c7f3adca54f0475553087384b7a7.html | 259 --------------------- .../section_473a2b9e79723ff76a7f243f85d2b6b8.html | 259 --------------------- .../section_4d177ceb9ae128b1850140a7901a140a.html | 259 --------------------- 2.3-1/jar/scilab_en_US_help.jar | Bin 87193 -> 89135 bytes 2.3-1/macros/ASTManagement/%funcall_string.sci | 2 + 2.3-1/macros/ASTManagement/AST2Ccode.sci | 17 +- 2.3-1/macros/ASTManagement/AST_HandleCC.sci | 14 +- 2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci | 3 +- 2.3-1/macros/ASTManagement/AST_HandleFunCC.sci | 81 ++++--- 2.3-1/macros/ASTManagement/AST_HandleFunRC.sci | 79 +++++-- 2.3-1/macros/ASTManagement/AST_HandleFuncArray.sci | 63 +++++ .../macros/ASTManagement/AST_HandleFuncArray2D.sci | 69 ++++++ 2.3-1/macros/ASTManagement/AST_HandleRC.sci | 52 +---- .../macros/ASTManagement/AST_ParseIfExprStruct.sci | 2 + 2.3-1/macros/ASTManagement/AST_ParseOperStruct.sci | 1 + 2.3-1/macros/ASTManagement/_funcall_string.sci | 1 + 2.3-1/macros/ASTManagement/lib | Bin 1896 -> 0 bytes 2.3-1/macros/ASTManagement/names | 2 + .../CCodeGeneration/C_GenDeclarations_Dup.sci | 7 + 2.3-1/macros/CCodeGeneration/C_IfExpression.sci | 1 + 2.3-1/macros/CCodeGeneration/C_WhileExpression.sci | 1 + 2.3-1/macros/CCodeGeneration/lib | Bin 992 -> 0 bytes 2.3-1/macros/ErrorMessages/lib | Bin 456 -> 0 bytes .../macros/FunctionAnnotation/FA_GetOutArgInfo.sci | 15 +- 2.3-1/macros/FunctionAnnotation/lib | Bin 4090 -> 0 bytes 2.3-1/macros/FunctionList/lib | Bin 524 -> 0 bytes 2.3-1/macros/GeneralFunctions/lib | Bin 1068 -> 0 bytes 2.3-1/macros/Hardware/AVR/lib | Bin 908 -> 0 bytes 2.3-1/macros/Hardware/RasberryPi/lib | Bin 912 -> 0 bytes 2.3-1/macros/ImageProcessing/core/lib | Bin 460 -> 0 bytes 2.3-1/macros/ImageProcessing/highgui/lib | Bin 520 -> 0 bytes 2.3-1/macros/ImageProcessing/imgproc/lib | Bin 688 -> 0 bytes 2.3-1/macros/Scilab-Arduino/lib | Bin 652 -> 0 bytes 2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci | 2 +- 2.3-1/macros/SymbolTable/ST_InsOutArg_Dup.sci | 2 +- 2.3-1/macros/SymbolTable/lib | Bin 688 -> 0 bytes 2.3-1/macros/ToolInitialization/lib | Bin 1199 -> 0 bytes 2.3-1/macros/findDeps/lib | Bin 847 -> 0 bytes 2.3-1/macros/lib | Bin 472 -> 0 bytes 2.3-1/macros/scilab2c.sci | 2 +- 2.3-1/src/c/string/strcspn/gstrcspna.c | 3 +- .../scilabcode/mainfunction.sci | 2 +- .../unit_tests/test01_DCT/scilabcode/main.sci | 7 + .../unit_tests/test02_IDCT/scilabcode/testidct.sci | 7 + 93 files changed, 436 insertions(+), 4316 deletions(-) create mode 100644 2.3-1/demos/test_dct.dem.sce create mode 100644 2.3-1/demos/test_idct.dem.sce delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRADCSetup.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRDigitalIn.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRDigitalOut.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRDigitalSetup.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRGetTimerValue.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRPWM0Setup.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRPWM1Setup.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRPWM2Setup.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRReadADC.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRSleep.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRTimerSetup.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRUARTReceive.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRUARTSetup.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/AVRUARTTransmit.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_Blur.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_Canny.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_CornerHarris.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_CreateImage.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_CvtColor.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_Dilate.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_DistanceTransform.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_Erode.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_GaussianBlur.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_GetImgSize.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_LoadImage.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_MedianBlur.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_SaveImage.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_ShowImage.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_Threshold.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/CV_WaitKey.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/index.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/section_0da8c7f3adca54f0475553087384b7a7.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/section_473a2b9e79723ff76a7f243f85d2b6b8.html delete mode 100644 2.3-1/help/en_US/scilab_en_US_help/section_4d177ceb9ae128b1850140a7901a140a.html create mode 100644 2.3-1/macros/ASTManagement/AST_HandleFuncArray.sci create mode 100644 2.3-1/macros/ASTManagement/AST_HandleFuncArray2D.sci delete mode 100644 2.3-1/macros/ASTManagement/lib delete mode 100644 2.3-1/macros/CCodeGeneration/lib delete mode 100644 2.3-1/macros/ErrorMessages/lib delete mode 100644 2.3-1/macros/FunctionAnnotation/lib delete mode 100644 2.3-1/macros/FunctionList/lib delete mode 100644 2.3-1/macros/GeneralFunctions/lib delete mode 100644 2.3-1/macros/Hardware/AVR/lib delete mode 100644 2.3-1/macros/Hardware/RasberryPi/lib delete mode 100644 2.3-1/macros/ImageProcessing/core/lib delete mode 100644 2.3-1/macros/ImageProcessing/highgui/lib delete mode 100644 2.3-1/macros/ImageProcessing/imgproc/lib delete mode 100644 2.3-1/macros/Scilab-Arduino/lib delete mode 100644 2.3-1/macros/SymbolTable/lib delete mode 100644 2.3-1/macros/ToolInitialization/lib delete mode 100644 2.3-1/macros/findDeps/lib delete mode 100644 2.3-1/macros/lib create mode 100644 2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci create mode 100644 2.3-1/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci (limited to '2.3-1') diff --git a/2.3-1/demos/scilab2c.dem.gateway.sce b/2.3-1/demos/scilab2c.dem.gateway.sce index 71372e25..3346885f 100644 --- a/2.3-1/demos/scilab2c.dem.gateway.sce +++ b/2.3-1/demos/scilab2c.dem.gateway.sce @@ -16,6 +16,8 @@ subdemolist = ["Trigonometric Identity" , "TrigonometricIdentity.dem.sce"; "Linear Regression" , "LinearRegression.dem.sce"; "Symbols", "Symbols.dem.sce"; "High Pass Filter", "Filter.dem.sce"; + "Discrete Cosine Transform" , "test_dct.dem.sce"; + "Inverse Cosine Transform" , "test_idct.dem.sce"; ]; -subdemolist(:,2) = demopath + subdemolist(:,2); \ No newline at end of file +subdemolist(:,2) = demopath + subdemolist(:,2); diff --git a/2.3-1/demos/test_dct.dem.sce b/2.3-1/demos/test_dct.dem.sce new file mode 100644 index 00000000..b1b62475 --- /dev/null +++ b/2.3-1/demos/test_dct.dem.sce @@ -0,0 +1,18 @@ +// +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +// Author : Ukasha Noor +// + +lines(0); + +global SCI2CHOME + +scilab2c(SCI2CHOME + "/tests/unit_tests/test01_DCT/scilabcode/main.sci", TMPDIR,SCI2CHOME + "/tests/unit_tests/test01_DCT/scilabcode"); + diff --git a/2.3-1/demos/test_idct.dem.sce b/2.3-1/demos/test_idct.dem.sce new file mode 100644 index 00000000..b1d33392 --- /dev/null +++ b/2.3-1/demos/test_idct.dem.sce @@ -0,0 +1,18 @@ +// +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +// Author : Ukasha Noor +// + +lines(0); + +global SCI2CHOME + +scilab2c(SCI2CHOME + "/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci", TMPDIR,SCI2CHOME + "/tests/unit_tests/test02_IDCT/scilabcode"); + diff --git a/2.3-1/etc/scilab2c.start b/2.3-1/etc/scilab2c.start index 2f364c68..793b0a7b 100644 --- a/2.3-1/etc/scilab2c.start +++ b/2.3-1/etc/scilab2c.start @@ -47,7 +47,7 @@ if or(getscilabmode() == ["NW";"STD"]) then mprintf("\tLoad demos\n"); pathdemos = pathconvert(root_tlbx + "/demos/scilab2c.dem.gateway.sce",%f,%t); -// add_demo(gettext("Scilab2C"),pathdemos); + add_demo(gettext("Scilab2C"),pathdemos); clear pathdemos ; end diff --git a/2.3-1/help/en_US/master_help.xml b/2.3-1/help/en_US/master_help.xml index 90e0f8d2..8936dc73 100644 --- a/2.3-1/help/en_US/master_help.xml +++ b/2.3-1/help/en_US/master_help.xml @@ -1,41 +1,41 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]> Scilab 2 C Converter - + Scilab 2 C Converter -&a45ff9a6852959b1a533849baff9131c0; -&aa535870c28cdae60e20522da4d040edf; -&a7b357f4ea5dcfc83bd854d778bb430f8; -&a044f46a6067058c19f94381c893a126c; -&a46f0585f7f884cc85ee697b9a7b684e3; -&ae277689fbe556195d10f3cf7b91a6249; -&a589e1300bf17ec9092564c9c2778ea6d; -&a6e1e23a859268abaa4cda23edd48db26; -&af36bcc614f777ae47a7d36300c39c3ed; -&a174a3c3f824b709d128b677155856a30; -&a59a8f3dd0aea835bffcdd26d255b05a5; -&a65045ecd909e625cba31e7267b144b56; -&a40ac677c8b55c6bfa6cfcd7a81f046db; -&a59ebb3d123e41d3896ad640cdc07744e; -&ad45dd5fbbfeb5adb284d65f52110c5d7; -&adab54deec23a20dc384238025026cefc; -&a286165071c98d9849467ecf03c10299f; -&a1271cad4af17a89fbd333c70aa572959; -&a3587ac9ce679f7f9ebed4cd2b465eb45; -&a899c8caef8a80ad4ab494d9bc54b25fe; -&a8a81a8aa50590a5e4fe751cf4703a1ce; -&acef90ed956f606a535d7c56240044f01; -&a56e8bdeda6841211b177581fcfab6432; -&a4e046d2f0e51a5080d88c9643e8e0ddb; -&a4208f720d40e4c450619dedb5a3dfad8; -&a4a33c54f876a7394881deae0cf392901; -&ad1c438fb40230c7f1ae7d1b94c60eb18; -&a086e99d8570c59b8b45c2f95514fe7d1; -&aef6dd7d7c9b5939b3a3dac25e9656cad; -&a93407fa91b64871ca4ee864d189b4cf3; -&afd0fae2216ddb355bde20422a15f187e; -&a990f985e9ce47fd8a4195024bd72c52c; -&aaad233f1461f9874467c10aeb9000612; -&a7243090fad8f462f410bf471d164c068; -&ae0a9a04582b5eddcda2ef2bb2855cb81; +&a4ced7d2e9b67c3e5f5d8dec5c4c2a7b5; +&a5f5c61e585d010e92f93094110917ca7; +&a35188be2c73a9ca19f826716928f3ec9; +&a69e1a047bede352c51cedd397734970f; +&a4cc0c4a0736a186fd8c793a5931c4974; +&a5894e1a7b54b82b85c5ad8af0b1fa6d5; +&a783ceb667c7a8409726cf9adce661d88; +&a23fd74c6d855b2964b0bfa857431ea4a; +&a2172fe9e4db1b8e833d86308dd94c6a3; +&abdab8d756ed35d367b06e6dde1621452; +&a2933bc0f9cb3180a9026a202f6e74590; +&a7221cb8544366ee2c816b8ccd9664883; +&a6612fc748e40a8aea75010ec106c07fe; +&a2b293f8ed8c22852ce431697b92a08eb; +&a9496bc0a5f790d45b011fb50692abf85; +&ab35f22a34eb52742144ead9a681dda20; +&a125927a7acbaea7fd55fc0580cdf7b79; +&a22ff1d79d2ef02736de34d1a658093a8; +&a17a4e1ba842d5ef2d7d0b0d35bf94aa1; +&abfcde272e39230f785989a224e21806a; +&a839bbf0799d5751e818f9e4fbbd722d4; +&af4f7e0bd9a31d7525b132608f90064ba; +&a3ea3eceb6bebf9b13469ddf273bf27f0; +&abd061b61493b58398c19b824f8a3429a; +&a4cef09c6efafa5d24963cd3092dda406; +&ace749f1d0fa9b20d8932a3f5609c8333; +&a02ff94de28ead9bc5cc0d97fae412854; +&a1060701fdb8180ecad0c30f52d23871e; +&aa9df078994f9e82d214198518454245f; +&a11167a6869d5fec4c77d30b72498da29; +&a5f57d860917ba6a90f92b977254a30f9; +&a2c8500afd93e0ba9a67168cdd3d991ae; +&ad1a62a529d62218dc5cee6c4e3edfa83; +&ab304d0ea2d0c8c73d960e5366f436edf; +&a65d0226eae804ea7a9b3855bb4bdee2a; diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRADCSetup.html b/2.3-1/help/en_US/scilab_en_US_help/AVRADCSetup.html deleted file mode 100644 index 19d393b6..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRADCSetup.html +++ /dev/null @@ -1,88 +0,0 @@ - - - AVRADCSetup - - - -
- - - - -
- << Scilab 2 C Converter - - - Scilab 2 C Converter - - - AVRDigitalIn >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRADCSetup - -

-

AVRADCSetup

-

Function to initialise ADC of AVR

- - -

Calling Sequence

-
AVRADCSetup(uint8 prescaler, uint8 adc_ref)
- -

Parameters

-
prescaler: -

prescaler to be used for generating ADC clock (0-7)

-
adc_ref : -

reference voltage to be used for ADC conversion

- -

Description

-

This function initialises ADc of AVR with given parameters. 'prescaler' is needed for deciding ADC clock. ADC clock should be between 50KHz and 200KHz and it given as (MCU clock/2^prescaler). Select appropriate prescaler depending on MCU clock. 'adc_ref' selects one of the available reference voltage sources available.

-

The adc_ref can take the following values- -

-

This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR.

-

- -

Examples

-
AVRADCSetup(128,0)
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << Scilab 2 C Converter - - - Scilab 2 C Converter - - - AVRDigitalIn >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRDigitalIn.html b/2.3-1/help/en_US/scilab_en_US_help/AVRDigitalIn.html deleted file mode 100644 index 40592ccd..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRDigitalIn.html +++ /dev/null @@ -1,88 +0,0 @@ - - - AVRDigitalIn - - - -
- - - - -
- << AVRADCSetup - - - Scilab 2 C Converter - - - AVRDigitalOut >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalIn - -

-

AVRDigitalIn

-

Function to get state (high\low) of a digital input pin on AVR

- - -

Calling Sequence

-
state=AVRDigitalIn(port,pin)
- -

Parameters

-
port : -

port of microcontroller to be used

-
pin : -

pin of port (mentioned above) to be used

- -

Description

-

Each AVR microcontroller has pins which can be configured as digital -inputs. These are normally divided among some 'ports' (group of pins). -User has to select one of these port and which pin of that port as -digital input.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

- -

Examples

-
pinA0 = AVRDigitalIn(1,0)   //To read state on pin 0 of port A
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRADCSetup - - - Scilab 2 C Converter - - - AVRDigitalOut >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRDigitalOut.html b/2.3-1/help/en_US/scilab_en_US_help/AVRDigitalOut.html deleted file mode 100644 index ba1f71d1..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRDigitalOut.html +++ /dev/null @@ -1,91 +0,0 @@ - - - AVRDigitalOut - - - -
- - - - -
- << AVRDigitalIn - - - Scilab 2 C Converter - - - AVRDigitalPortSetup >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalOut - -

-

AVRDigitalOut

-

Function to change state (high\low) of a digital output pin on AVR

- - -

Calling Sequence

-
AVRDigitalOut(port,pin,state)
- -

Parameters

-
port : -

port of microcontroller to be used

-
pin : -

pin of port (mentioned above) to be used

-
state : -

state to be outputed on pin (HIGH\LOW)

- -

Description

-

Each AVR microcontroller has pins which can be configured as digital -outputs. These are normally divided among some 'ports' (group of pins). -User has to select one of these port and which pin of that port as -digital output. Also, desired output state must be specified as -'HIGH' or 'LOW'.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

- -

Examples

-
AVRDigitalOut('A',0,HIGH)
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRDigitalIn - - - Scilab 2 C Converter - - - AVRDigitalPortSetup >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html b/2.3-1/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html deleted file mode 100644 index 6ff374c9..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html +++ /dev/null @@ -1,89 +0,0 @@ - - - AVRDigitalPortSetup - - - -
- - - - -
- << AVRDigitalOut - - - Scilab 2 C Converter - - - AVRDigitalSetup >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalPortSetup - -

-

AVRDigitalPortSetup

-

Function to decide direction of port on AVR

- - -

Calling Sequence

-
AVRDigitalPortSetup(port,direction)
- -

Parameters

-
port : -

port of microcontroller to be used(1 for PORTA, 2 for PORTB,...)

-
direction : -

direction to be set for pin (0 for INPUT, 1 for OUTPUT)

- -

Description

-

Each AVR microcontroller has pins which can be configured as digital -outputs/inputs. These are normally divided among some 'ports' (group of pins). -User has to select one of these port and which pin of that port to be -used as digital output/input. Also, desired direction must be specified as -'INPUT' or 'OUTPUT'.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

- -

Examples

-
AVRDigitalPortSetup(1,0); //This function will make PortA as input port
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRDigitalOut - - - Scilab 2 C Converter - - - AVRDigitalSetup >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRDigitalSetup.html b/2.3-1/help/en_US/scilab_en_US_help/AVRDigitalSetup.html deleted file mode 100644 index 64142d3b..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRDigitalSetup.html +++ /dev/null @@ -1,91 +0,0 @@ - - - AVRDigitalSetup - - - -
- - - - -
- << AVRDigitalPortSetup - - - Scilab 2 C Converter - - - AVRGetTimerValue >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalSetup - -

-

AVRDigitalSetup

-

Function to decide direction of a digital pin on AVR

- - -

Calling Sequence

-
AVRDigitalSetup(port,pin,direction)
- -

Parameters

-
port : -

port of microcontroller to be used

-
pin : -

pin of port (mentioned above) to be used

-
direction : -

direction to be set for pin (INPUT\OUTPUT)

- -

Description

-

Each AVR microcontroller has pins which can be configured as digital -outputs/inputs. These are normally divided among some 'ports' (group of pins). -User has to select one of these port and which pin of that port to be -used as digital output/input. Also, desired direction must be specified as -'INPUT' or 'OUTPUT'.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

- -

Examples

-
AVRDigitalSetup('A',0,OUTPUT)
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRDigitalPortSetup - - - Scilab 2 C Converter - - - AVRGetTimerValue >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRGetTimerValue.html b/2.3-1/help/en_US/scilab_en_US_help/AVRGetTimerValue.html deleted file mode 100644 index ae75314c..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRGetTimerValue.html +++ /dev/null @@ -1,83 +0,0 @@ - - - AVRGetTimerValue - - - -
- - - - -
- << AVRDigitalSetup - - - Scilab 2 C Converter - - - AVRPWM0SetDuty >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRGetTimerValue - -

-

AVRGetTimerValue

-

Function to get timer count

- - -

Parameters

-
timer : -

timer whose current count is to be returned

- -

Description

-

This function returns the count value of a desired timer.By knowing the count value certain interrupt action can be taken.

-

Timer can take the following values -

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

- -

Examples

-
AVRGetTimerValue(0);   //returns present count of the TCNT0 counter
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRDigitalSetup - - - Scilab 2 C Converter - - - AVRPWM0SetDuty >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html b/2.3-1/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html deleted file mode 100644 index d8a29b07..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html +++ /dev/null @@ -1,80 +0,0 @@ - - - AVRPWM0SetDuty - - - -
- - - - -
- << AVRGetTimerValue - - - Scilab 2 C Converter - - - AVRPWM0Setup >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM0SetDuty - -

-

AVRPWM0SetDuty

-

Function to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.

- - -

Parameters

-
duty : -

It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active.

- -

Description

-

Each Micro controller has PWM output pins which can generate varying voltage -from 0V-5V.In this function by varying the duty cycle, varying voltage can be produced.

-

This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR.

-

- -

Examples

-
AVRPWM0SetDuty(50); //Produces 2.5V at OC0 pin
-AVRPWM0SetDuty(0); //Produces 0V at OC0 pin
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRGetTimerValue - - - Scilab 2 C Converter - - - AVRPWM0Setup >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRPWM0Setup.html b/2.3-1/help/en_US/scilab_en_US_help/AVRPWM0Setup.html deleted file mode 100644 index 45306664..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRPWM0Setup.html +++ /dev/null @@ -1,98 +0,0 @@ - - - AVRPWM0Setup - - - -
- - - - -
- << AVRPWM0SetDuty - - - Scilab 2 C Converter - - - AVRPWM1SetDuty >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM0Setup - -

-

AVRPWM0Setup

-

Function to Setup OC0 pin for required PWM mode

- - -

Parameters

-
waveform_mode: -

integer, from 0 to 2

-
output_mode: -

integer, from 0 to 1 (or 2) depending on the waveform_mode

- -

Description

-

Every Micro controller has PWM pins which can generate varying voltages -from 0V-5V.This function helps to use OC0 pin to produce required -output waveform by setting the waveform mode and otput mode.

-

waveform_mode can take values- -

-

output_mode can take values- -

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

- -

Examples

-
AVRPWM0Setup(2,0);     //This function will select CTC waveform mode and will clear OC0 on compare match
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRPWM0SetDuty - - - Scilab 2 C Converter - - - AVRPWM1SetDuty >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html b/2.3-1/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html deleted file mode 100644 index 44649890..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html +++ /dev/null @@ -1,83 +0,0 @@ - - - AVRPWM1SetDuty - - - -
- - - - -
- << AVRPWM0Setup - - - Scilab 2 C Converter - - - AVRPWM1Setup >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM1SetDuty - -

-

AVRPWM1SetDuty

-

Function to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.

- - -

Parameters

-
ouput_pin: -

integer, 0 (for OC1A) or 1 (for OC1B)

-
duty: -

It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active.

-
Top_Value: -

It holds an integer value from 0 to 65535.This value sets the Top value of the counter TCNT1 i.e ICR.(for more info refer datasheet)

- -

Description

-

Each Micro controller has PWM output pins which can generate varying voltage -from 0V-5V.This function Sets the duty cycle of output PWM signal.Also this function -decides the Top Vale of TCNT1 and the output pin to output PWM signal.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

Example -AVRPWM1SetDuty(0,50,40000); //This function will produce PWM signal of 50% duty cycle on OC1A pin and TCNT1 will reset at 40000 instead at 65535.

- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRPWM0Setup - - - Scilab 2 C Converter - - - AVRPWM1Setup >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRPWM1Setup.html b/2.3-1/help/en_US/scilab_en_US_help/AVRPWM1Setup.html deleted file mode 100644 index dc8169af..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRPWM1Setup.html +++ /dev/null @@ -1,100 +0,0 @@ - - - AVRPWM1Setup - - - -
- - - - -
- << AVRPWM1SetDuty - - - Scilab 2 C Converter - - - AVRPWM2SetDuty >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM1Setup - -

-

AVRPWM1Setup

-

Function to Setup OC1A or OC1B pin for required PWM mode

- - -

Parameters

-
waveform_mode: -

integer, from 0 to 2

-
output_mode: -

integer, from 0 to 1 (or 2) depending on the waveform_mode

-
output_pin: -

0 (for OC1A) or 1 for (OC1B)

- -

Description

-

Every Micro controller has PWM pins which can generate varying voltages -from 0V-5V.This function helps to use OC1A or OC1B pin to produces required -output waveform by setting the waveform mode and otput mode.

-

waveform_mode can take values- -

-

output_mode can take values- -

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

Example -AVRPWM1Setup(2,0,0); //This function will select CTC mode and will clear OC1A or OC1B -on compare match.Also as defined the output will be produced at -0C1A pin.

- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRPWM1SetDuty - - - Scilab 2 C Converter - - - AVRPWM2SetDuty >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html b/2.3-1/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html deleted file mode 100644 index be0c2251..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html +++ /dev/null @@ -1,81 +0,0 @@ - - - AVRPWM2SetDuty - - - -
- - - - -
- << AVRPWM1Setup - - - Scilab 2 C Converter - - - AVRPWM2Setup >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM2SetDuty - -

-

AVRPWM2SetDuty

-

Function to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.

- - -

Parameters

-
duty : -

It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active.

- -

Description

-

Each Micro controller has PWM output pins which can generate varying voltage -from 0V-5V.In this function by varying the duty cycle, varying voltage can be -produced.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

Example -AVRPWM2SetDuty(50); //Produces 2.5V at OC2 pin -AVRPWM2SetDuty(0); //Produces 0V at OC2 pin

-

- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRPWM1Setup - - - Scilab 2 C Converter - - - AVRPWM2Setup >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRPWM2Setup.html b/2.3-1/help/en_US/scilab_en_US_help/AVRPWM2Setup.html deleted file mode 100644 index b6f116d8..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRPWM2Setup.html +++ /dev/null @@ -1,97 +0,0 @@ - - - AVRPWM2Setup - - - -
- - - - -
- << AVRPWM2SetDuty - - - Scilab 2 C Converter - - - AVRReadADC >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM2Setup - -

-

AVRPWM2Setup

-

Function to Setup OC2 pin for required PWM mode

- - -

Parameters

-
waveform_mode: -

integer, from 0 to 2

-
output_mode: -

integer, from 0 to 1 (or 2) depending on the waveform_mode

- -

Description

-

Every Micro controller has PWM pins which can generate varying voltages -from 0V-5V.This function helps to use OC2 pin to produces required -output waveform by setting the waveform mode and otput mode.

-

waveform_mode can take values- -

-

output_mode can take values- -

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

Example -AVRPWM2Setup(2,0); //This function will select CTC waveform mode and will clear OC2 on -compare match

- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRPWM2SetDuty - - - Scilab 2 C Converter - - - AVRReadADC >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRReadADC.html b/2.3-1/help/en_US/scilab_en_US_help/AVRReadADC.html deleted file mode 100644 index 5d009c98..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRReadADC.html +++ /dev/null @@ -1,84 +0,0 @@ - - - AVRReadADC - - - -
- - - - -
- << AVRPWM2Setup - - - Scilab 2 C Converter - - - AVRSleep >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRReadADC - -

-

AVRReadADC

-

Function to get voltage on analog pin on AVR

- - -

Calling Sequence

-
u8AVRReadADCs(channel)
- -

Parameters

-
channel : -

Select which channel is to be read. Values from 0-7 select one of the pins ADC0-ADC7. For other possible channel values refer datasheet

- -

Description

-

This function returns digital value for present on adc pins. 'channel' -selects which of the ADC0-ADC7 is to be used for reading analog value. -Apart from reading just ADC0-ADC7 other it can also read differential -voltages between some pins. For channel values for those options, please -refer datasheet.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

- -

Examples

-
adc_result = u8AVRReadADC(0)   //Read ADC0
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRPWM2Setup - - - Scilab 2 C Converter - - - AVRSleep >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRSleep.html b/2.3-1/help/en_US/scilab_en_US_help/AVRSleep.html deleted file mode 100644 index 09372499..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRSleep.html +++ /dev/null @@ -1,75 +0,0 @@ - - - AVRSleep - - - -
- - - - -
- << AVRReadADC - - - Scilab 2 C Converter - - - AVRTimerSetup >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRSleep - -

-

AVRSleep

-

Function to pause the execution for the given time.

- - -

Description

-

This function causes the execution to stop for the given amount of time.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

- -

Examples

-
AVRSleep(5000);
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRReadADC - - - Scilab 2 C Converter - - - AVRTimerSetup >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRTimerSetup.html b/2.3-1/help/en_US/scilab_en_US_help/AVRTimerSetup.html deleted file mode 100644 index 6c78ecce..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRTimerSetup.html +++ /dev/null @@ -1,66 +0,0 @@ - - - AVRTimerSetup - - - -
- - - - -
- << AVRSleep - - - Scilab 2 C Converter - - - AVRUARTReceive >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRTimerSetup - -

-

AVRTimerSetup

-

Function to setup Timers in ATmega16

- - -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRSleep - - - Scilab 2 C Converter - - - AVRUARTReceive >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRUARTReceive.html b/2.3-1/help/en_US/scilab_en_US_help/AVRUARTReceive.html deleted file mode 100644 index 6c7347d3..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRUARTReceive.html +++ /dev/null @@ -1,77 +0,0 @@ - - - AVRUARTReceive - - - -
- - - - -
- << AVRTimerSetup - - - Scilab 2 C Converter - - - AVRUARTSetup >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTReceive - -

-

AVRUARTReceive

-

Function to Receive Char value send to ATmega16 using UART or USART.

- - -

Description

-

This function Receives Char as 8 bit value.This value is stored in UDR at receiving -end.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

- -

Examples

-
state = AVRUARTReceive(); //This function will Receive char and return the entire value
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRTimerSetup - - - Scilab 2 C Converter - - - AVRUARTSetup >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRUARTSetup.html b/2.3-1/help/en_US/scilab_en_US_help/AVRUARTSetup.html deleted file mode 100644 index 6b3c98ac..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRUARTSetup.html +++ /dev/null @@ -1,96 +0,0 @@ - - - AVRUARTSetup - - - -
- - - - -
- << AVRUARTReceive - - - Scilab 2 C Converter - - - AVRUARTTransmit >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTSetup - -

-

AVRUARTSetup

-

Function to Setup Serial Communication i.e UART or USART in ATmega16.

- - -

Parameters

-
mode : -

integer, from 0 to 2

-
baudrate : -

Enter one of the following available baudrates (2400 , 4800 , 9600 , 14400 , 19200 , 28800 , 38400 , 57600 , 768000 , 115200 , 230400 , 250000 , 1000000)

-
stopbits : -

integer, (0 for one stopbit) or (1 for two stopbits)

-
parity : -

integer, from 0 to 2

- -

Description

-

This function Setup the UART or USART for Serial Communicaion between ATmega16 -and different micro controllers or between ATmega16 and Computer.

-

mode can take values: -

-

parity can take values: -

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

- -

Examples

-
AVRUARTSetup(0,9600,0,0); //This function will enable UART Communication for ATmega16
-with 9600 as baudrate,one stop bit and parity disabled
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRUARTReceive - - - Scilab 2 C Converter - - - AVRUARTTransmit >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/AVRUARTTransmit.html b/2.3-1/help/en_US/scilab_en_US_help/AVRUARTTransmit.html deleted file mode 100644 index 02baa9ab..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/AVRUARTTransmit.html +++ /dev/null @@ -1,77 +0,0 @@ - - - AVRUARTTransmit - - - -
- - - - -
- << AVRUARTSetup - - - Scilab 2 C Converter - - - CV_AdaptiveThreshold >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTTransmit - -

-

AVRUARTTransmit

-

Function to Transmit data using UART or USART.

- - -

Description

-

This function Tranmits data over UART or USART.The data to be transmitted can -be a Char , String , Unsigned Int, Signed Int.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

-

- -

Examples

-
AVRUARTTransmit("This is example");  //This function will transmit the entered string.
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRUARTSetup - - - Scilab 2 C Converter - - - CV_AdaptiveThreshold >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html b/2.3-1/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html deleted file mode 100644 index c2273ae4..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html +++ /dev/null @@ -1,94 +0,0 @@ - - - CV_AdaptiveThreshold - - - -
- - - - -
- << AVRUARTTransmit - - - Scilab 2 C Converter - - - CV_Blur >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_AdaptiveThreshold - -

-

CV_AdaptiveThreshold

-

function to adaptively threshold input image

- - -

Calling Sequence

-
dst = CV_AdaptiveThreshold(srcimg,max_value,adaptive_method,thresh_type,blk_size,c)
- -

Parameters

-
src : -

Source 8-bit single-channel image.

-
max_value : -

Non-zero value assigned to the pixels for which the condition is satisfied. See the details below.

-
adaptive_method : -

Adaptive thresholding algorithm to use, ADAPTIVE_THRESH_MEAN_C or ADAPTIVE_THRESH_GAUSSIAN_C .

-
thresh_type : -

Thresholding type that must be either THRESH_BINARY or THRESH_BINARY_INV .

-
blockSize : -

Size of a pixel neighborhood that is used to calculate a threshold value for the pixel: 3, 5, 7, and so on.

-
C : -

Constant subtracted from the mean or weighted mean.Normally, it is positive but may be zero or negative as well.

- -

Description

-

This function can be used for adaptively threshold given image

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-dst = CV_AdaptiveThreshold(img,255,"ADAPTIVE_THRESH_MEAN_C", ...
-"THRESH_BINARY",5,0)
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << AVRUARTTransmit - - - Scilab 2 C Converter - - - CV_Blur >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_Blur.html b/2.3-1/help/en_US/scilab_en_US_help/CV_Blur.html deleted file mode 100644 index 78ced0cf..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_Blur.html +++ /dev/null @@ -1,96 +0,0 @@ - - - CV_Blur - - - -
- - - - -
- << CV_AdaptiveThreshold - - - Scilab 2 C Converter - - - CV_Canny >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Blur - -

-

CV_Blur

-

function to blur image using normalised box filter

- - -

Calling Sequence

-
dst = CV_Blur(srcimg,ksize_width,ksize_height,anchor_x,anchor_y,border_type)
- -

Parameters

-
srcimg : -

Source image.

-
ksize_width, ksize_height : -

blurring kernel size.

-
anchor_x, anchor_y : -

x,y coordinates of anchor point

-
border_type : -

border mode used to extrapolate pixels outside of the image.

- -

Description

-

This function can be used for blurring image using normalised box -filter. Image can be of any depth and have any no of channels.

-

border_type can be : -

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-dst = CV_Blur(img,3,3,-1,-1,"BORDER_CONSTANT")
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_AdaptiveThreshold - - - Scilab 2 C Converter - - - CV_Canny >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_Canny.html b/2.3-1/help/en_US/scilab_en_US_help/CV_Canny.html deleted file mode 100644 index 2efbc71a..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_Canny.html +++ /dev/null @@ -1,95 +0,0 @@ - - - CV_Canny - - - -
- - - - -
- << CV_Blur - - - Scilab 2 C Converter - - - CV_CornerHarris >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Canny - -

-

CV_Canny

-

Finds edges in image using Canny algorithm

- - -

Calling Sequence

-
edges = CV_Canny(srcimg,threhold1,threshold2,aperture_size,L2gradient)
- -

Parameters

-
srcimg : -

single-channel 8-bit input image.

-
threshold1 : -

first threshold for the hysteresis procedure.

-
threshold2 : -

second threshold for the hysteresis procedure.

-
aperture_size : -

aperture size for the Sobel() operator.

-
L2gradient : -

a flag, indicating whether a more accurate

- -

Description

-

This function can be used for finding edes in single channel 8 bit -image. 'aperture_size' and 'L2gradient' are optionals. By default, -aperture_size is 3 and L2gradient is false.

-

For L2gradient: L_2 norm =sqrt{(dI/dx)^2 + (dI/dy)^2} should be used to calculate the image gradient magnitude (L2gradient=1 ), or whether the default L_1 norm =|dI/dx|+|dI/dy| is enough (L2gradient=0).

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-dst = CV_CvtColor(img,"CV_RGB2GRAY");
-edge = CV_Canny(dst,50,100,3,0);
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_Blur - - - Scilab 2 C Converter - - - CV_CornerHarris >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_CornerHarris.html b/2.3-1/help/en_US/scilab_en_US_help/CV_CornerHarris.html deleted file mode 100644 index 72cd4171..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_CornerHarris.html +++ /dev/null @@ -1,98 +0,0 @@ - - - CV_CornerHarris - - - -
- - - - -
- << CV_Canny - - - Scilab 2 C Converter - - - CV_CreateImage >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_CornerHarris - -

-

CV_CornerHarris

-

Finds edges in image using Harris algorithm

- - -

Calling Sequence

-
edges = CV_CornerHarris(srcimg,blocksize,ksize,k,border_type)
- -

Parameters

-
srcimg: -

Input single-channel 8-bit or floating-point image.

-
blockSize: -

Neighborhood size

-
ksize: -

Aperture parameter for the Sobel() operator.

-
k: -

Harris detector free parameter.

-
border_type: -

border mode used to extrapolate pixels outside of the image.

- -

Description

-

The function runs the Harris edge detector on the image. For each pixel (x, y) it calculates a 2 * 2 gradient covariance matrix M(x,y) over a blockSize * blockSize neighborhood. Then, it computes the following characteristic: dst(x,y) = det(M(x,y)) - k .tr(M(x,y))^2. Corners in the image can be found as the local maxima of this response map.

-

border_type can be : -

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-dst = CV_CvtColor(img,"CV_RGB2GRAY");
-edge = CV_CornerHarris(dst,5,3,1,"BORDER_REPLICATE");
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_Canny - - - Scilab 2 C Converter - - - CV_CreateImage >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_CreateImage.html b/2.3-1/help/en_US/scilab_en_US_help/CV_CreateImage.html deleted file mode 100644 index 0c28a03d..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_CreateImage.html +++ /dev/null @@ -1,85 +0,0 @@ - - - CV_CreateImage - - - -
- - - - -
- << CV_CornerHarris - - - Scilab 2 C Converter - - - CV_CvtColor >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_CreateImage - -

-

CV_CreateImage

-

function to create an image object of given size and type

- - -

Calling Sequence

-
CV_CreateImage(image_size,bit_depth,no_of_channels)
- -

Parameters

-
image_size: -

width and height of image

-
bit_depth: -

Bit depth of image elements

-
no_of_channels: -

no of channels per pixels

- -

Description

-

This function can be used to create opencv image object. For more info about bit depth and channels,please refer to OpenCV documentation

-

This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for OpenCV

-

- -

Examples

-
CV_CreateImage([320 240], "IPL_DEPTH_8U", 1)    //to create image of the size 320*240 pixels with 8 bit unsigned each pixels and gray scale image
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_CornerHarris - - - Scilab 2 C Converter - - - CV_CvtColor >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_CvtColor.html b/2.3-1/help/en_US/scilab_en_US_help/CV_CvtColor.html deleted file mode 100644 index ce03acf5..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_CvtColor.html +++ /dev/null @@ -1,90 +0,0 @@ - - - CV_CvtColor - - - -
- - - - -
- << CV_CreateImage - - - Scilab 2 C Converter - - - CV_Dilate >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_CvtColor - -

-

CV_CvtColor

-

function to convert image from one colorspace to other colorspace

- - -

Calling Sequence

-
CV_CvtColor(srcimg,code)
- -

Parameters

-
srcimg: -

source image to be converted

-
dstimg: -

destination image in which to store converted image

-
code: -

String specifying conversion type. Same as defined in OpenCV. for eg. 'CV_RGB2GRAY' for conversion from RGB image to grayscale image

-
dstCn: -

no of channels in destination image (0 by default)

- -

Description

-

This function can be used for converting an image to other colorspace. -Refer OpenCV documentation for list of available conversions

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-dst = CV_CvtColor(img,'CV_RGB2GRAY')
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_CreateImage - - - Scilab 2 C Converter - - - CV_Dilate >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_Dilate.html b/2.3-1/help/en_US/scilab_en_US_help/CV_Dilate.html deleted file mode 100644 index a4956766..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_Dilate.html +++ /dev/null @@ -1,99 +0,0 @@ - - - CV_Dilate - - - -
- - - - -
- << CV_CvtColor - - - Scilab 2 C Converter - - - CV_DistanceTransform >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Dilate - -

-

CV_Dilate

-

dilates an image by using a specific structuring element.

- - -

Calling Sequence

-
cvtimg = CV_Dilate(srcimg,dilation_type,dilation_size,[iterations,border_type,border_value])
- -

Parameters

-
src : -

input image; the number of channels can be arbitrary, but the depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.

-
dilation_type : -

can be one of MORPH_RECT, MORPH_CROSS,MORPH_ELLIPSE

-
dilation_size : -

size of kernel to be used for erosion. Must be odd

-
iterations : -

number of times erosion is applied.

-
border_type : -

pixel extrapolation method.

-
border_value : -

border value in case of a constant border

- -

Description

-

This function can be used for eroding an image. Kernel used for erosion is decided by type and size. Size must always be odd. Anchor pint of kernel is always center of kernel. Input arguements 'iterations(1), border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not specified, default values as as mentioned in brackets.

-

border_type can be : -

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-dst = CV_Erode(img,"MORPH_RECT",3,1,"BORDER_CONSTANT",0);
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_CvtColor - - - Scilab 2 C Converter - - - CV_DistanceTransform >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_DistanceTransform.html b/2.3-1/help/en_US/scilab_en_US_help/CV_DistanceTransform.html deleted file mode 100644 index fd2d7d70..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_DistanceTransform.html +++ /dev/null @@ -1,87 +0,0 @@ - - - CV_DistanceTransform - - - -
- - - - -
- << CV_Dilate - - - Scilab 2 C Converter - - - CV_Erode >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_DistanceTransform - -

-

CV_DistanceTransform

-

function to calculate distance to closest zero pixels for each pixel

- - -

Calling Sequence

-
dst = CV_DistanceTransform(srcimg,distance_type,mask_size)
- -

Parameters

-
srcimg : -

Source 8-bit single-channel image.

-
distance_type : -

Type of distance. It can be CV_DIST_L1, CV_DIST_L2 , or CV_DIST_C

-
mask_size : -

Size of the distance transform mask

- -

Description

-

This function can be used to calculate distance to closest zero pixel for each pixel of the source image. Output is 32 bit floatingpoint, single channel image of the same size as that of source image.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-dst = CV_DistanceTransform(img,"CV_DIST_L1",3)
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_Dilate - - - Scilab 2 C Converter - - - CV_Erode >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_Erode.html b/2.3-1/help/en_US/scilab_en_US_help/CV_Erode.html deleted file mode 100644 index fe863700..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_Erode.html +++ /dev/null @@ -1,99 +0,0 @@ - - - CV_Erode - - - -
- - - - -
- << CV_DistanceTransform - - - Scilab 2 C Converter - - - CV_GaussianBlur >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Erode - -

-

CV_Erode

-

Erodes an image by using a specific structuring element.

- - -

Calling Sequence

-
cvtimg = CV_Erode(srcimg,erosion_type,erosion_size,[iterations,border_type,border_value])
- -

Parameters

-
src : -

input image; the number of channels can be arbitrary, but the depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.

-
erosion_type : -

can be one of : MORPH_RECT, MORPH_CROSS, MORPH_ELLIPSE

-
erosion_size : -

size of kernel to be used for erosion. Must be odd

-
iterations : -

number of times erosion is applied.

-
border_type : -

pixel extrapolation method.

-
border_value : -

border value in case of a constant border

- -

Description

-

This function can be used for eroding an image. Kernel used for erosion is decided by type and size. Size must always be odd. Anchor pint of kernel is always center of kernel. Input arguements 'iterations(1), border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not specified, default values as as mentioned in brackets.

-

border_type can be : -

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-dst = CV_Erode(img,"MORPH_RECT",3,1,"BORDER_CONSTANT",0);
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_DistanceTransform - - - Scilab 2 C Converter - - - CV_GaussianBlur >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_GaussianBlur.html b/2.3-1/help/en_US/scilab_en_US_help/CV_GaussianBlur.html deleted file mode 100644 index e6ed4e62..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_GaussianBlur.html +++ /dev/null @@ -1,98 +0,0 @@ - - - CV_GaussianBlur - - - -
- - - - -
- << CV_Erode - - - Scilab 2 C Converter - - - CV_GetImgSize >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_GaussianBlur - -

-

CV_GaussianBlur

-

function to blur image using gaussian filter

- - -

Calling Sequence

-
cvtimg = CV_GaussianBlur(srcimg,ksize_width,ksize_height,sigma_x,sigma_y,border_type)
- -

Parameters

-
srcimg : -

Source image.

-
ksize_width, ksize_height : -

blurring kernel size. must be odd.

-
sigmaX : -

Gaussian kernel standard deviation in X direction.

-
sigmaY : -

Gaussian kernel standard deviation in Y direction;

-
border_type : -

border mode used to extrapolate pixels outside of the image.

- -

Description

-

This function can be used for blurring image using gaussian filter. Image can be of any depth and have any no of channels.

-

For sigmaX and sigmaY : if sigmaY is zero, it is set to be equal to sigmaX, if both sigmas are zeros, they are computed from ksize.width and ksize.height , respectively.

-

border_type can be : -

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-dst = CV_GaussianBlur(img,3,3,0,0,"BORDER_CONSTANT")
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_Erode - - - Scilab 2 C Converter - - - CV_GetImgSize >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_GetImgSize.html b/2.3-1/help/en_US/scilab_en_US_help/CV_GetImgSize.html deleted file mode 100644 index 21ec770f..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_GetImgSize.html +++ /dev/null @@ -1,84 +0,0 @@ - - - CV_GetImgSize - - - -
- - - - -
- << CV_GaussianBlur - - - Scilab 2 C Converter - - - CV_LoadImage >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_GetImgSize - -

-

CV_GetImgSize

-

function to get size of the image (width*height)

- - -

Calling Sequence

-
CV_GetImgSize(img)
- -

Parameters

-
img: -

image whose size is to be returned

- -

Description

-

This function can be used for retriving size information of the image. -It returs an array with first image element as width and second as height

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-size = CV_GetImgSize(img)
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_GaussianBlur - - - Scilab 2 C Converter - - - CV_LoadImage >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_LoadImage.html b/2.3-1/help/en_US/scilab_en_US_help/CV_LoadImage.html deleted file mode 100644 index f18261a2..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_LoadImage.html +++ /dev/null @@ -1,88 +0,0 @@ - - - CV_LoadImage - - - -
- - - - -
- << CV_GetImgSize - - - Scilab 2 C Converter - - - CV_MedianBlur >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_LoadImage - -

-

CV_LoadImage

-

function to load an image object from given filename

- - -

Calling Sequence

-
CV_LoadImage(filename,loadtype)
- -

Parameters

-
filename: -

name of file to be opened

-
loadtype: -

desired load method

- -

Description

-

This function can be used for loading a previously stored image

-

loadtype can take the following values: -

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
CV_LoadImage('~/test.jpg',0)
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_GetImgSize - - - Scilab 2 C Converter - - - CV_MedianBlur >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_MedianBlur.html b/2.3-1/help/en_US/scilab_en_US_help/CV_MedianBlur.html deleted file mode 100644 index 7821e2a4..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_MedianBlur.html +++ /dev/null @@ -1,86 +0,0 @@ - - - CV_MedianBlur - - - -
- - - - -
- << CV_LoadImage - - - Scilab 2 C Converter - - - CV_SaveImage >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_MedianBlur - -

-

CV_MedianBlur

-

function to blur image using median filter

- - -

Calling Sequence

-
cvtimg = CV_MedianBlur(srcimg,ksize)
- -

Parameters

-
srcimg : -

input 1-, 3-, or 4-channel image; when ksize is 3 or 5, the image depth should be CV_8U, CV_16U, or CV_32F, for larger aperture sizes, it can only be CV_8U.

-
ksize_width : -

aperture linear size; it must be odd and greater than 1, for example: 3, 5, 7 ...

- -

Description

-

This function can be used for blurring image using median -filter. Image can be of any depth and have any no of channels.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-dst = CV_MedianBlur(img,3)
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_LoadImage - - - Scilab 2 C Converter - - - CV_SaveImage >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_SaveImage.html b/2.3-1/help/en_US/scilab_en_US_help/CV_SaveImage.html deleted file mode 100644 index 94da92e4..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_SaveImage.html +++ /dev/null @@ -1,86 +0,0 @@ - - - CV_SaveImage - - - -
- - - - -
- << CV_MedianBlur - - - Scilab 2 C Converter - - - CV_ShowImage >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_SaveImage - -

-

CV_SaveImage

-

function to save an image object as a given filename

- - -

Calling Sequence

-
CV_SaveImage(filename,img)
- -

Parameters

-
filename: -

name of file image to be saved as

-
img: -

image to be saved

- -

Description

-

This function can be used for saving image. File format is detected -from file extension

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-CV_SaveImage('test1.png',img)
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_MedianBlur - - - Scilab 2 C Converter - - - CV_ShowImage >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_ShowImage.html b/2.3-1/help/en_US/scilab_en_US_help/CV_ShowImage.html deleted file mode 100644 index fe6c088c..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_ShowImage.html +++ /dev/null @@ -1,86 +0,0 @@ - - - CV_ShowImage - - - -
- - - - -
- << CV_SaveImage - - - Scilab 2 C Converter - - - CV_Threshold >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_ShowImage - -

-

CV_ShowImage

-

function to show an image

- - -

Calling Sequence

-
CV_ShowImage(img)
-CV_ShowImage(winname,img)
- -

Parameters

-
winname: -

name of window in which img is to be shown

-
img: -

image to be shown already acquired (from file/camera)

- -

Description

-

This function can be used for showing images

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-CV_ShowImage(img)
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_SaveImage - - - Scilab 2 C Converter - - - CV_Threshold >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_Threshold.html b/2.3-1/help/en_US/scilab_en_US_help/CV_Threshold.html deleted file mode 100644 index 90f6f96f..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_Threshold.html +++ /dev/null @@ -1,90 +0,0 @@ - - - CV_Threshold - - - -
- - - - -
- << CV_ShowImage - - - Scilab 2 C Converter - - - CV_WaitKey >> - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Threshold - -

-

CV_Threshold

-

function to threshold input image

- - -

Calling Sequence

-
dst = CV_Threshold(srcimg,code,threshold,max_value,thresh_type)
- -

Parameters

-
srcimg: -

source image to be converted

-
threshold: -

threshold value

-
max_value: -

maximum value to be used with THRESH_BINARY and THRESH_BINARY_INV

-
thresh_type: -

Type for threshold. It can one of the following: THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, THRESH_TOZERO, THRESH_TOZERO_INV

- -

Description

-

This function can be used for converting an image to other colorspace. -Refer OpenCV documentation for list of available conversions

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-dst = CV_Threshold(img,100,255,'THRESH_BINARY')
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_ShowImage - - - Scilab 2 C Converter - - - CV_WaitKey >> - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/CV_WaitKey.html b/2.3-1/help/en_US/scilab_en_US_help/CV_WaitKey.html deleted file mode 100644 index d81650a9..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/CV_WaitKey.html +++ /dev/null @@ -1,83 +0,0 @@ - - - CV_WaitKey - - - -
- - - - -
- << CV_Threshold - - - Scilab 2 C Converter - - - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_WaitKey - -

-

CV_WaitKey

-

function similar to cvWaitKey

- - -

Calling Sequence

-
CV_WaitKey(delay)
- -

Parameters

-
delay: -

waiting delay, if 0 then wait till keypress

- -

Description

-

This function can be used for inseting some delay. This function must -follow CV_ShowImage to display image.

-

This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

-

- -

Examples

-
img = CV_LoadImage('~/test.jpg',0)
-CV_ShowImage('',img)
-CV_WaitKey(0);
- -

See also

-
- -

Authors

-
-
- -
- - - - - - -
Report an issue
- << CV_Threshold - - - Scilab 2 C Converter - - - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS b/2.3-1/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS index 7aa98ed1..4c372c43 100644 Binary files a/2.3-1/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS and b/2.3-1/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS differ diff --git a/2.3-1/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB b/2.3-1/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB index ec5d02fd..85316e53 100644 --- a/2.3-1/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB +++ b/2.3-1/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB @@ -1 +1,2 @@ -eÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿuÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿuÿÿÿÿÿuÿÿÿÿÿý×ÿÿ4Ÿ÷_ÿÿÿÿÿÿÿý×ÿÿÿÿÿüÂÿÿÿÿÿÿÿý×ÿÿÿÿÿÿ÷_ÿÝÿÿuÿÿÿÿÝÿÿÿÿÿÿÝÿý×ÿÿý×ÿý×ÿuÿÝý×Ý}×ÿ÷_ÿÿÿuÿÿÿÿýóŸÿýÔÒý×Ý@¨XrÇ ªñuVév¸`T`Z2 Z†…©Zµe~Q‘iq‘Qj]åÙXh^]ªV”`TpXdÂ!Q¥iZ•—l`^WV¡¡V•”l]^\r¡Q(ΘrpQ–®‡!Jªd¯u¿ÿÿÿªªŠ0–0qÊ¡FQ‘J™\`WËó ÄrÍ*/ú£K8««£ £¢®ª¨Ï+¬ÂúŒ*ºªº0³ £ª0£*‹ªª¨Øªªªªª¨âªª9,£*ªª®ªŠººª2ªª˜ª«ªªª»ªªªÿ0ªª¯óKÿÿ2/ÿÿÿÿÿÿÿÿÿÿüÂÿÿüÂÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ` \ No newline at end of file +eÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ÷_ÿÿÿÿÿÿÿÿý×ÿÿÿÿÿý×ÿÿuÿÿÿÿÿÿuÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÝÿÿÿÝÿÿÿÿÿÿÝÿÿÿÿý×ÿÿÿÿÿÿÿÿÿÿÿý×ÿÿÿÿÿ÷_ÿÿÿÿÿÿÝ÷W]͉ÿÿÿÝÿÿÿüÒÿÿÝ÷_0ŸÿÿÿuÿÿÿÝÿÿÿÿÿ0ŸÿÿÿÿÿÝýÕ×ý×ý×ÿÿÿÿÿÿÿÝ}×ÿÌ'ÿÐ - - - - - -
- - - - -
- - - - - -
-
-
- - - - -

-

Scilab 2 C Converter

- -
- -
- - - - - - -
Report an issue
- - - - - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/jhelpmap.jhm b/2.3-1/help/en_US/scilab_en_US_help/jhelpmap.jhm index a2225c6e..855b4189 100644 --- a/2.3-1/help/en_US/scilab_en_US_help/jhelpmap.jhm +++ b/2.3-1/help/en_US/scilab_en_US_help/jhelpmap.jhm @@ -2,7 +2,7 @@ - + diff --git a/2.3-1/help/en_US/scilab_en_US_help/jhelptoc.xml b/2.3-1/help/en_US/scilab_en_US_help/jhelptoc.xml index 7c20d44f..7ac7e464 100644 --- a/2.3-1/help/en_US/scilab_en_US_help/jhelptoc.xml +++ b/2.3-1/help/en_US/scilab_en_US_help/jhelptoc.xml @@ -2,7 +2,7 @@ - + diff --git a/2.3-1/help/en_US/scilab_en_US_help/section_0da8c7f3adca54f0475553087384b7a7.html b/2.3-1/help/en_US/scilab_en_US_help/section_0da8c7f3adca54f0475553087384b7a7.html deleted file mode 100644 index 647ce7ce..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/section_0da8c7f3adca54f0475553087384b7a7.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - -
- - - - -
- - - Scilab 2 C Converter - - - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter - -

-

Scilab 2 C Converter

-
  • AVRADCSetupFunction to initialise ADC of AVR
  • - - - - - -
  • AVRDigitalInFunction to get state (high\low) of a digital input pin on AVR
  • - - - - - -
  • AVRDigitalOutFunction to change state (high\low) of a digital output pin on AVR
  • - - - - - -
  • AVRDigitalPortSetupFunction to decide direction of port on AVR
  • - - - - - -
  • AVRDigitalSetupFunction to decide direction of a digital pin on AVR
  • - - - - - -
  • AVRGetTimerValueFunction to get timer count
  • - - - - - -
  • AVRPWM0SetDutyFunction to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.
  • - - - - - -
  • AVRPWM0SetupFunction to Setup OC0 pin for required PWM mode
  • - - - - - -
  • AVRPWM1SetDutyFunction to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.
  • - - - - - -
  • AVRPWM1SetupFunction to Setup OC1A or OC1B pin for required PWM mode
  • - - - - - -
  • AVRPWM2SetDutyFunction to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.
  • - - - - - -
  • AVRPWM2SetupFunction to Setup OC2 pin for required PWM mode
  • - - - - - -
  • AVRReadADCFunction to get voltage on analog pin on AVR
  • - - - - - -
  • AVRSleepFunction to pause the execution for the given time.
  • - - - - - -
  • AVRTimerSetupFunction to setup Timers in ATmega16
  • - - - - - -
  • AVRUARTReceiveFunction to Receive Char value send to ATmega16 using UART or USART.
  • - - - - - -
  • AVRUARTSetupFunction to Setup Serial Communication i.e UART or USART in ATmega16.
  • - - - - - -
  • AVRUARTTransmitFunction to Transmit data using UART or USART.
  • - - - - - -
  • CV_AdaptiveThresholdfunction to adaptively threshold input image
  • - - - - - -
  • CV_Blurfunction to blur image using normalised box filter
  • - - - - - -
  • CV_CannyFinds edges in image using Canny algorithm
  • - - - - - -
  • CV_CornerHarrisFinds edges in image using Harris algorithm
  • - - - - - -
  • CV_CreateImagefunction to create an image object of given size and type
  • - - - - - -
  • CV_CvtColorfunction to convert image from one colorspace to other colorspace
  • - - - - - -
  • CV_Dilatedilates an image by using a specific structuring element.
  • - - - - - -
  • CV_DistanceTransformfunction to calculate distance to closest zero pixels for each pixel
  • - - - - - -
  • CV_ErodeErodes an image by using a specific structuring element.
  • - - - - - -
  • CV_GaussianBlurfunction to blur image using gaussian filter
  • - - - - - -
  • CV_GetImgSizefunction to get size of the image (width*height)
  • - - - - - -
  • CV_LoadImagefunction to load an image object from given filename
  • - - - - - -
  • CV_MedianBlurfunction to blur image using median filter
  • - - - - - -
  • CV_SaveImagefunction to save an image object as a given filename
  • - - - - - -
  • CV_ShowImagefunction to show an image
  • - - - - - -
  • CV_Thresholdfunction to threshold input image
  • - - - - - -
  • CV_WaitKeyfunction similar to cvWaitKey
-
- -
- - - - - - -
Report an issue
- - - Scilab 2 C Converter - - - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/section_473a2b9e79723ff76a7f243f85d2b6b8.html b/2.3-1/help/en_US/scilab_en_US_help/section_473a2b9e79723ff76a7f243f85d2b6b8.html deleted file mode 100644 index 647ce7ce..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/section_473a2b9e79723ff76a7f243f85d2b6b8.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - -
- - - - -
- - - Scilab 2 C Converter - - - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter - -

-

Scilab 2 C Converter

-
  • AVRADCSetupFunction to initialise ADC of AVR
  • - - - - - -
  • AVRDigitalInFunction to get state (high\low) of a digital input pin on AVR
  • - - - - - -
  • AVRDigitalOutFunction to change state (high\low) of a digital output pin on AVR
  • - - - - - -
  • AVRDigitalPortSetupFunction to decide direction of port on AVR
  • - - - - - -
  • AVRDigitalSetupFunction to decide direction of a digital pin on AVR
  • - - - - - -
  • AVRGetTimerValueFunction to get timer count
  • - - - - - -
  • AVRPWM0SetDutyFunction to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.
  • - - - - - -
  • AVRPWM0SetupFunction to Setup OC0 pin for required PWM mode
  • - - - - - -
  • AVRPWM1SetDutyFunction to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.
  • - - - - - -
  • AVRPWM1SetupFunction to Setup OC1A or OC1B pin for required PWM mode
  • - - - - - -
  • AVRPWM2SetDutyFunction to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.
  • - - - - - -
  • AVRPWM2SetupFunction to Setup OC2 pin for required PWM mode
  • - - - - - -
  • AVRReadADCFunction to get voltage on analog pin on AVR
  • - - - - - -
  • AVRSleepFunction to pause the execution for the given time.
  • - - - - - -
  • AVRTimerSetupFunction to setup Timers in ATmega16
  • - - - - - -
  • AVRUARTReceiveFunction to Receive Char value send to ATmega16 using UART or USART.
  • - - - - - -
  • AVRUARTSetupFunction to Setup Serial Communication i.e UART or USART in ATmega16.
  • - - - - - -
  • AVRUARTTransmitFunction to Transmit data using UART or USART.
  • - - - - - -
  • CV_AdaptiveThresholdfunction to adaptively threshold input image
  • - - - - - -
  • CV_Blurfunction to blur image using normalised box filter
  • - - - - - -
  • CV_CannyFinds edges in image using Canny algorithm
  • - - - - - -
  • CV_CornerHarrisFinds edges in image using Harris algorithm
  • - - - - - -
  • CV_CreateImagefunction to create an image object of given size and type
  • - - - - - -
  • CV_CvtColorfunction to convert image from one colorspace to other colorspace
  • - - - - - -
  • CV_Dilatedilates an image by using a specific structuring element.
  • - - - - - -
  • CV_DistanceTransformfunction to calculate distance to closest zero pixels for each pixel
  • - - - - - -
  • CV_ErodeErodes an image by using a specific structuring element.
  • - - - - - -
  • CV_GaussianBlurfunction to blur image using gaussian filter
  • - - - - - -
  • CV_GetImgSizefunction to get size of the image (width*height)
  • - - - - - -
  • CV_LoadImagefunction to load an image object from given filename
  • - - - - - -
  • CV_MedianBlurfunction to blur image using median filter
  • - - - - - -
  • CV_SaveImagefunction to save an image object as a given filename
  • - - - - - -
  • CV_ShowImagefunction to show an image
  • - - - - - -
  • CV_Thresholdfunction to threshold input image
  • - - - - - -
  • CV_WaitKeyfunction similar to cvWaitKey
-
- -
- - - - - - -
Report an issue
- - - Scilab 2 C Converter - - - -
-
-
- - diff --git a/2.3-1/help/en_US/scilab_en_US_help/section_4d177ceb9ae128b1850140a7901a140a.html b/2.3-1/help/en_US/scilab_en_US_help/section_4d177ceb9ae128b1850140a7901a140a.html deleted file mode 100644 index 647ce7ce..00000000 --- a/2.3-1/help/en_US/scilab_en_US_help/section_4d177ceb9ae128b1850140a7901a140a.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - -
- - - - -
- - - Scilab 2 C Converter - - - -
-
-
- - - - Scilab 2 C Converter >> Scilab 2 C Converter - -

-

Scilab 2 C Converter

-
  • AVRADCSetupFunction to initialise ADC of AVR
  • - - - - - -
  • AVRDigitalInFunction to get state (high\low) of a digital input pin on AVR
  • - - - - - -
  • AVRDigitalOutFunction to change state (high\low) of a digital output pin on AVR
  • - - - - - -
  • AVRDigitalPortSetupFunction to decide direction of port on AVR
  • - - - - - -
  • AVRDigitalSetupFunction to decide direction of a digital pin on AVR
  • - - - - - -
  • AVRGetTimerValueFunction to get timer count
  • - - - - - -
  • AVRPWM0SetDutyFunction to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.
  • - - - - - -
  • AVRPWM0SetupFunction to Setup OC0 pin for required PWM mode
  • - - - - - -
  • AVRPWM1SetDutyFunction to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.
  • - - - - - -
  • AVRPWM1SetupFunction to Setup OC1A or OC1B pin for required PWM mode
  • - - - - - -
  • AVRPWM2SetDutyFunction to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.
  • - - - - - -
  • AVRPWM2SetupFunction to Setup OC2 pin for required PWM mode
  • - - - - - -
  • AVRReadADCFunction to get voltage on analog pin on AVR
  • - - - - - -
  • AVRSleepFunction to pause the execution for the given time.
  • - - - - - -
  • AVRTimerSetupFunction to setup Timers in ATmega16
  • - - - - - -
  • AVRUARTReceiveFunction to Receive Char value send to ATmega16 using UART or USART.
  • - - - - - -
  • AVRUARTSetupFunction to Setup Serial Communication i.e UART or USART in ATmega16.
  • - - - - - -
  • AVRUARTTransmitFunction to Transmit data using UART or USART.
  • - - - - - -
  • CV_AdaptiveThresholdfunction to adaptively threshold input image
  • - - - - - -
  • CV_Blurfunction to blur image using normalised box filter
  • - - - - - -
  • CV_CannyFinds edges in image using Canny algorithm
  • - - - - - -
  • CV_CornerHarrisFinds edges in image using Harris algorithm
  • - - - - - -
  • CV_CreateImagefunction to create an image object of given size and type
  • - - - - - -
  • CV_CvtColorfunction to convert image from one colorspace to other colorspace
  • - - - - - -
  • CV_Dilatedilates an image by using a specific structuring element.
  • - - - - - -
  • CV_DistanceTransformfunction to calculate distance to closest zero pixels for each pixel
  • - - - - - -
  • CV_ErodeErodes an image by using a specific structuring element.
  • - - - - - -
  • CV_GaussianBlurfunction to blur image using gaussian filter
  • - - - - - -
  • CV_GetImgSizefunction to get size of the image (width*height)
  • - - - - - -
  • CV_LoadImagefunction to load an image object from given filename
  • - - - - - -
  • CV_MedianBlurfunction to blur image using median filter
  • - - - - - -
  • CV_SaveImagefunction to save an image object as a given filename
  • - - - - - -
  • CV_ShowImagefunction to show an image
  • - - - - - -
  • CV_Thresholdfunction to threshold input image
  • - - - - - -
  • CV_WaitKeyfunction similar to cvWaitKey
-
- -
- - - - - - -
Report an issue
- - - Scilab 2 C Converter - - - -
-
-
- - diff --git a/2.3-1/jar/scilab_en_US_help.jar b/2.3-1/jar/scilab_en_US_help.jar index c57b4cb0..0faf4147 100644 Binary files a/2.3-1/jar/scilab_en_US_help.jar and b/2.3-1/jar/scilab_en_US_help.jar differ diff --git a/2.3-1/macros/ASTManagement/%funcall_string.sci b/2.3-1/macros/ASTManagement/%funcall_string.sci index 0ee97016..fc4b929b 100644 --- a/2.3-1/macros/ASTManagement/%funcall_string.sci +++ b/2.3-1/macros/ASTManagement/%funcall_string.sci @@ -5,6 +5,8 @@ function txt=%funcall_string(F) // rhs : a list // name : string, the name of the function // lhsnb: number, the number of function lhs +// Modified By: Ukasha Noor + if F.name <> 'disp' txt=['Funcall : '+F.name diff --git a/2.3-1/macros/ASTManagement/AST2Ccode.sci b/2.3-1/macros/ASTManagement/AST2Ccode.sci index 563f3133..516291a8 100644 --- a/2.3-1/macros/ASTManagement/AST2Ccode.sci +++ b/2.3-1/macros/ASTManagement/AST2Ccode.sci @@ -11,6 +11,7 @@ function AST2Ccode(FileInfoDatFile) // // Status: // 11-May-2007 -- Raffaele Nutricato: Author. +// 15-June-2017 -- Ukasha Noor: Revised By // // Copyright 2007 Raffaele Nutricato. // Contact: raffaele.nutricato@tiscali.it @@ -64,6 +65,8 @@ STACKDEDUG = 0; // 1 -> Every Pop and Push operation on the stack, the stack con global disp_isthere disp_isthere = 0; + +FName = null // ------------------------------------- // --- End parameter Initialization. --- // ------------------------------------- @@ -144,9 +147,13 @@ while ~meof(fidAST) case 'EndOperation' then [disp_isthere,FileInfo,SharedInfo] = AST_HandleEndGenFun(disp_isthere,FileInfo,SharedInfo,'Operation'); case 'EndFuncall' then + if rc_count > 0 & cc_count == 0 + [EqualInArgName,EqualInArgScope,EqualNInArg,FName] = AST_HandleFuncArray(FileInfo,SharedInfo); + elseif cc_count > 0 + [EqualInArgName,EqualInArgScope,EqualNInArg,FName] = AST_HandleFuncArray2D(FileInfo,SharedInfo); + else [disp_isthere,FileInfo,SharedInfo] = AST_HandleEndGenFun(disp_isthere,FileInfo,SharedInfo,'Funcall'); - disp(disp_isthere); - + end // -------------- // --- Equal. --- // -------------- @@ -156,10 +163,10 @@ while ~meof(fidAST) //NUT: ho miste ins e variabili, per esempio [c(1,1), a] = twooutfun(); //NUT: in questo caso solo una delle due equal va scartata. if rc_count > 0 & cc_count == 0 - [FileInfo,SharedInfo] = AST_HandleFunRC(FileInfo,SharedInfo); + [FileInfo,SharedInfo] = AST_HandleFunRC(FName,FileInfo,SharedInfo); rc_count = 0; elseif cc_count > 0 - [FileInfo,SharedInfo] = AST_HandleFunCC(cc_count,FileInfo,SharedInfo); + [FileInfo,SharedInfo] = AST_HandleFunCC(FName,cc_count,FileInfo,SharedInfo); rc_count = 0; cc_count = 0; else @@ -169,12 +176,12 @@ while ~meof(fidAST) end end disp_isthere = 0; + FName = null case 'Equal' then SharedInfo.Equal.Enabled = 1; // 1 means enabled -> we are inside an equal AST block. AST_PushASTStack(treeline); case 'Lhs :' then - disp(disp_isthere); if rc_count > 0 & cc_count == 0 SharedInfo.Equal.Lhs = 1; [EqualInArgName,EqualInArgScope,EqualNInArg] = AST_HandleRC(FileInfo,SharedInfo); diff --git a/2.3-1/macros/ASTManagement/AST_HandleCC.sci b/2.3-1/macros/ASTManagement/AST_HandleCC.sci index cc411549..897a06f1 100644 --- a/2.3-1/macros/ASTManagement/AST_HandleCC.sci +++ b/2.3-1/macros/ASTManagement/AST_HandleCC.sci @@ -8,7 +8,9 @@ // Author: Ukasha Noor // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in - +// This function is used for 2D array declaration +// This function extracts the input arguments in the array and check there Name and Scope. +// Then repush everything back to stack function [RhsNames,RhsScope,NRhs] = AST_HandleCC(FileInfo,SharedInfo) SCI2CNInArgCheck(argn(2),2,2) @@ -56,14 +58,6 @@ for cntpush = cntpop:-1:1 end -//for counterinputargs = 1:NRhs - //#RNU_RES_B - //disp(counterinputargs); - //PrintStringInfo('Input Argument Number '+string(counterinputargs)+': '+RhsNames(counterinputargs).Name,... - // ReportFileName,'file','y'); - //PrintStringInfo(' Scope: '+RhsNames(counterinputargs).Scope,... - // ReportFileName,'file','y'); - //#RNU_RES_E -//end + endfunction diff --git a/2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci b/2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci index 96830aa9..327dc299 100644 --- a/2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci +++ b/2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci @@ -1,4 +1,3 @@ - function [disp_isthere,FileInfo,SharedInfo] = AST_HandleEndGenFun(disp_isthere,FileInfo,SharedInfo,ASTFunType) // function [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,ASTFunType) // ----------------------------------------------------------------- @@ -28,11 +27,13 @@ function [disp_isthere,FileInfo,SharedInfo] = AST_HandleEndGenFun(disp_isthere,F // // Status: // 11-Apr-2007 -- Raffaele Nutricato: Author. +// 15-June-2017 -- Ukasha Noor : Revised By // // Copyright 2007 Raffaele Nutricato. // Contact: raffaele.nutricato@tiscali.it // ----------------------------------------------------------------- + // ------------------------------ // --- Check input arguments. --- // ------------------------------ diff --git a/2.3-1/macros/ASTManagement/AST_HandleFunCC.sci b/2.3-1/macros/ASTManagement/AST_HandleFunCC.sci index 1942c749..8669ad1f 100644 --- a/2.3-1/macros/ASTManagement/AST_HandleFunCC.sci +++ b/2.3-1/macros/ASTManagement/AST_HandleFunCC.sci @@ -8,11 +8,14 @@ // Author: Ukasha Noor // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in +// This function put the input elements of array in InArg and +// output in OutArg from the stack. +// Then finds the number of columns and rows in matrix and the type of matrix. +// The call the function to generate the C code for declaration. +function [FileInfo,SharedInfo] = AST_HandleFunCC(FName,NCol,FileInfo,SharedInfo) -function [FileInfo,SharedInfo] = AST_HandleFunCC(NCol,FileInfo,SharedInfo) - -SCI2CNInArgCheck(argn(2),3,3) +SCI2CNInArgCheck(argn(2),4,4) // ------------------------------ // --- Check input arguments. --- @@ -140,30 +143,56 @@ for i = 1:NInArg end -if com_type == 0 - PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); - OutArg(1).Type = InArg(1).Type; - OutArg(1).Size(1) = string(NCol); - OutArg(1).Size(2) = string(NRow); - OutArg(1).Dimension = 2; - OutArg(1).Value = InArg(1).Value; - OutArg(1).FindLike = InArg(1).FindLike; -elseif com_type == 1 - PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); - OutArg(1).Type = 'z'; - OutArg(1).Size(1) = string(NCol); - OutArg(1).Size(2) = string(NRow); - OutArg(1).Dimension = 2; - OutArg(1).Value = InArg(1).Value; - OutArg(1).FindLike = InArg(1).FindLike; +if FName <> null + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + if FName == 'float' + OutArg(1).Type = 's'; + elseif FName == 'uint8' + OutArg(1).Type = 'u8'; + elseif FName == 'int16' + OutArg(1).Type = 'i16'; + elseif FName == 'uint16' + OutArg(1).Type = 'u16'; + elseif FName == 'int8' + OutArg(1).Type = 'i8'; + elseif FName == 'uint32' + OutArg(1).Type = 'u32'; + elseif FName == 'int32' + OutArg(1).Type = 'i32'; + else + OutArg(1).Type = 'd'; + end + OutArg(1).Size(1) = string(NCol); + OutArg(1).Size(2) = string(NRow); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; else - PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); - OutArg(1).Type = 'c'; - OutArg(1).Size(1) = string(NCol); - OutArg(1).Size(2) = string(NRow); - OutArg(1).Dimension = 2; - OutArg(1).Value = InArg(1).Value; - OutArg(1).FindLike = InArg(1).FindLike; + if com_type == 0 + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + OutArg(1).Type = InArg(1).Type; + OutArg(1).Size(1) = string(NCol); + OutArg(1).Size(2) = string(NRow); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; + elseif com_type == 1 + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + OutArg(1).Type = 'z'; + OutArg(1).Size(1) = string(NCol); + OutArg(1).Size(2) = string(NRow); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; + else + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + OutArg(1).Type = 'c'; + OutArg(1).Size(1) = string(NCol); + OutArg(1).Size(2) = string(NRow); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; + end end //--- Check for output Argument in symbol table ---// diff --git a/2.3-1/macros/ASTManagement/AST_HandleFunRC.sci b/2.3-1/macros/ASTManagement/AST_HandleFunRC.sci index d3169249..a5885d57 100644 --- a/2.3-1/macros/ASTManagement/AST_HandleFunRC.sci +++ b/2.3-1/macros/ASTManagement/AST_HandleFunRC.sci @@ -8,10 +8,13 @@ // Author: Ukasha Noor // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in +// This function is used for 1D array declaration. +// Checks the input and output argumnets and put them in respective variables. +// Then calls the function to generate the C code for 1D array declaration. -function [FileInfo,SharedInfo] = AST_HandleFunRC(FileInfo,SharedInfo) +function [FileInfo,SharedInfo] = AST_HandleFunRC(FName,FileInfo,SharedInfo) -SCI2CNInArgCheck(argn(2),2,2) +SCI2CNInArgCheck(argn(2),3,3) // ------------------------------ // --- Check input arguments. --- @@ -142,30 +145,56 @@ for i = 1:NInArg end -if com_type == 0 - PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); - OutArg(1).Type = InArg(1).Type; - OutArg(1).Size(1) = '1' - OutArg(1).Size(2) = string(size_count); - OutArg(1).Dimension = 2; - OutArg(1).Value = InArg(1).Value; - OutArg(1).FindLike = InArg(1).FindLike; -elseif com_type == 1 - PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); - OutArg(1).Type = 'z'; - OutArg(1).Size(1) = '1' - OutArg(1).Size(2) = string(size_count); - OutArg(1).Dimension = 2; - OutArg(1).Value = InArg(1).Value; - OutArg(1).FindLike = InArg(1).FindLike; +if FName <> null + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + if FName == 'float' + OutArg(1).Type = 's'; + elseif FName == 'uint8' + OutArg(1).Type = 'u8'; + elseif FName == 'int16' + OutArg(1).Type = 'i16'; + elseif FName == 'uint16' + OutArg(1).Type = 'u16'; + elseif FName == 'int8' + OutArg(1).Type = 'i8'; + elseif FName == 'uint32' + OutArg(1).Type = 'u32'; + elseif FName == 'int32' + OutArg(1).Type = 'i32'; + else + OutArg(1).Type = 'd'; + end + OutArg(1).Size(1) = '1' + OutArg(1).Size(2) = string(size_count); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; else - PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); - OutArg(1).Type = 'c'; - OutArg(1).Size(1) = '1' - OutArg(1).Size(2) = string(size_count); - OutArg(1).Dimension = 2; - OutArg(1).Value = InArg(1).Value; - OutArg(1).FindLike = InArg(1).FindLike; + if com_type == 0 + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + OutArg(1).Type = InArg(1).Type; + OutArg(1).Size(1) = '1' + OutArg(1).Size(2) = string(size_count); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; + elseif com_type == 1 + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + OutArg(1).Type = 'z'; + OutArg(1).Size(1) = '1' + OutArg(1).Size(2) = string(size_count); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; + else + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + OutArg(1).Type = 'c'; + OutArg(1).Size(1) = '1' + OutArg(1).Size(2) = string(size_count); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; + end end //--- Check for output Argument in symbol table ---// diff --git a/2.3-1/macros/ASTManagement/AST_HandleFuncArray.sci b/2.3-1/macros/ASTManagement/AST_HandleFuncArray.sci new file mode 100644 index 00000000..364e305e --- /dev/null +++ b/2.3-1/macros/ASTManagement/AST_HandleFuncArray.sci @@ -0,0 +1,63 @@ +function [RhsNames,RhsScope,NRhs,FName] = AST_HandleFuncArray(FileInfo,SharedInfo) +// Copyright (C) 2017 - IIT Bombay - FOSSEE + +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +// Author: Ukasha Noor +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in +// This function is used for 1D array declaration. + +SCI2CNInArgCheck(argn(2),2,2) + +ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName; + +// ------------------------------ +// --- Check input arguments. --- +// ------------------------------ + + +global SCI2CSTACK +global StackPosition; +global STACKDEDUG +// --------------------------- +// --- End Initialization. --- +// --------------------------- + + +// ------------------------------ +// --- Read input parameters. --- +// ------------------------------ +cntpop = 1; +NRhs = 0; +RhsField(cntpop) = AST_PopASTStack(); +RhsNames = []; +while (RhsField(cntpop) ~= 'Rhs :') + NRhs = NRhs + 1; + if RhsField(cntpop) <> 'Operands:' + [RhsNames(NRhs),RhsScope(NRhs)] = AST_ExtractNameAndScope(RhsField(cntpop)); + end + cntpop = cntpop + 1; + RhsField(cntpop) = AST_PopASTStack(); +end +first = AST_PopASTStack(); +second = AST_PopASTStack(); + +FName = stripblanks(part(second,12:length(second))); + +RhsNames = SCI2Cflipud(RhsNames); +RhsScope = SCI2Cflipud(RhsScope); + +// --- Repush everything into the stack. --- +for cntpush = cntpop:-1:1 + if RhsField(cntpush) <> 'Operands:' & RhsField(cntpush) <> 'Rhs :' + AST_PushASTStack(RhsField(cntpush)); + end +end + + + +endfunction diff --git a/2.3-1/macros/ASTManagement/AST_HandleFuncArray2D.sci b/2.3-1/macros/ASTManagement/AST_HandleFuncArray2D.sci new file mode 100644 index 00000000..859c9942 --- /dev/null +++ b/2.3-1/macros/ASTManagement/AST_HandleFuncArray2D.sci @@ -0,0 +1,69 @@ +// Copyright (C) 2017 - IIT Bombay - FOSSEE + +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +// Author: Ukasha Noor +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in +// This function is used for 2D array declaration +// This function extracts the input arguments in the array and check there Name and Scope. +// Then repush everything back to stack +function [RhsNames,RhsScope,NRhs,FName] = AST_HandleFuncArray2D(FileInfo,SharedInfo) + +SCI2CNInArgCheck(argn(2),2,2) + +ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName; + +// ------------------------------ +// --- Check input arguments. --- +// ------------------------------ + + +global SCI2CSTACK +global StackPosition; +global STACKDEDUG +// --------------------------- +// --- End Initialization. --- +// --------------------------- + + +// ------------------------------ +// --- Read input parameters. --- +// ------------------------------ +cntpop = 1; +NRhs = 0; +RhsField(cntpop) = AST_PopASTStack(); +RhsNames = []; +while (RhsField(cntpop) ~= 'Rhs :') + if RhsField(cntpop) <> 'Operands:' & RhsField(cntpop) <> 'Begin:' + NRhs = NRhs + 1; + + [RhsNames(NRhs),RhsScope(NRhs)] = AST_ExtractNameAndScope(RhsField(cntpop)); + end + cntpop = cntpop + 1; + RhsField(cntpop) = AST_PopASTStack(); +end + +first = AST_PopASTStack(); +second = AST_PopASTStack(); + +FName = stripblanks(part(second,12:length(second))); + +RhsNames = SCI2Cflipud(RhsNames); +RhsScope = SCI2Cflipud(RhsScope); + +// --- Repush everything into the stack. --- +for cntpush = cntpop:-1:1 + if RhsField(cntpush) <> 'Operands:' & RhsField(cntpush) <> 'Begin:' & RhsField(cntpush) <> 'Rhs :' + PrintStringInfo(' ' + RhsField(cntpush),ReportFileName,'file','y'); + AST_PushASTStack(RhsField(cntpush)); + end +end + + + + +endfunction diff --git a/2.3-1/macros/ASTManagement/AST_HandleRC.sci b/2.3-1/macros/ASTManagement/AST_HandleRC.sci index 2a6cbc3f..70568612 100644 --- a/2.3-1/macros/ASTManagement/AST_HandleRC.sci +++ b/2.3-1/macros/ASTManagement/AST_HandleRC.sci @@ -1,36 +1,15 @@ function [RhsNames,RhsScope,NRhs] = AST_HandleRC(FileInfo,SharedInfo) -// function [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,ASTFunType) -// ----------------------------------------------------------------- -// #RNU_RES_B -// Handles the EndFuncall, EndOperation and EndEqual tags of the AST. -// ASTFunType can be 'Funcall', 'Operation', 'Equal' -// Structure of Funcall: -// overloading function for "funcall" type tlist string function -// this is a node of the AST -// fields: -// rhs : a list -// name : string, the name of the function -// lhsnb: number, the number of function lhs -// txt=['Funcall : '+F.name -// ' #lhs : '+string(F.lhsnb) -// ' Rhs : ' -// ' '+objectlist2string(F.rhs) -// 'EndFuncall' -// ] -// #RNU_RES_E -// -// Input data: -// //NUT: add description here -// -// Output data: -// //NUT: add description here -// -// Status: -// 11-Apr-2007 -- Raffaele Nutricato: Author. -// -// Copyright 2007 Raffaele Nutricato. -// Contact: raffaele.nutricato@tiscali.it -// ----------------------------------------------------------------- +// Copyright (C) 2017 - IIT Bombay - FOSSEE + +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +// Author: Ukasha Noor +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in +// This function is used for 1D array declaration. SCI2CNInArgCheck(argn(2),2,2) @@ -75,14 +54,5 @@ for cntpush = cntpop:-1:1 end -//for counterinputargs = 1:NRhs - //#RNU_RES_B - //disp(counterinputargs); - // PrintStringInfo('Input Argument Number '+string(counterinputargs)+': '+RhsNames(counterinputargs).Name,... - // ReportFileName,'file','y'); - //PrintStringInfo(' Scope: '+RhsNames(counterinputargs).Scope,... - // ReportFileName,'file','y'); - //#RNU_RES_E -//end endfunction diff --git a/2.3-1/macros/ASTManagement/AST_ParseIfExprStruct.sci b/2.3-1/macros/ASTManagement/AST_ParseIfExprStruct.sci index 2bfb08dd..88ba2e9c 100644 --- a/2.3-1/macros/ASTManagement/AST_ParseIfExprStruct.sci +++ b/2.3-1/macros/ASTManagement/AST_ParseIfExprStruct.sci @@ -31,6 +31,8 @@ function [IfCondArg,NIfCondArg,Op,NOp] = AST_ParseIfExprStruct(FileInfo,SharedIn // // Status: // 11-Apr-2007 -- Raffaele Nutricato: Author. +// 25-June-2017 -- Ukasha Noor: Revised By +// This function is counting the number of logical operators and there operands. // // Copyright 2007 Raffaele Nutricato. // Contact: raffaele.nutricato@tiscali.it diff --git a/2.3-1/macros/ASTManagement/AST_ParseOperStruct.sci b/2.3-1/macros/ASTManagement/AST_ParseOperStruct.sci index 903f0958..ce0bcc72 100644 --- a/2.3-1/macros/ASTManagement/AST_ParseOperStruct.sci +++ b/2.3-1/macros/ASTManagement/AST_ParseOperStruct.sci @@ -26,6 +26,7 @@ function [FunctionName,InArg,NInArg,NOutArg] = AST_ParseOperStruct(FileInfo,Shar // // Status: // 11-Apr-2007 -- Raffaele Nutricato: Author. +// 25-June-2017 -- Ukasha Noor: Revised By // // Copyright 2007 Raffaele Nutricato. // Contact: raffaele.nutricato@tiscali.it diff --git a/2.3-1/macros/ASTManagement/_funcall_string.sci b/2.3-1/macros/ASTManagement/_funcall_string.sci index 0ee97016..7c0b0abf 100644 --- a/2.3-1/macros/ASTManagement/_funcall_string.sci +++ b/2.3-1/macros/ASTManagement/_funcall_string.sci @@ -5,6 +5,7 @@ function txt=%funcall_string(F) // rhs : a list // name : string, the name of the function // lhsnb: number, the number of function lhs +// Modified By: Ukasha Noor if F.name <> 'disp' txt=['Funcall : '+F.name diff --git a/2.3-1/macros/ASTManagement/lib b/2.3-1/macros/ASTManagement/lib deleted file mode 100644 index 51b54f6f..00000000 Binary files a/2.3-1/macros/ASTManagement/lib and /dev/null differ diff --git a/2.3-1/macros/ASTManagement/names b/2.3-1/macros/ASTManagement/names index 6deb883d..9ba83f73 100644 --- a/2.3-1/macros/ASTManagement/names +++ b/2.3-1/macros/ASTManagement/names @@ -31,6 +31,8 @@ AST_HandleFor AST_HandleForStatem AST_HandleFunCC AST_HandleFunRC +AST_HandleFuncArray +AST_HandleFuncArray2D AST_HandleHeader AST_HandleIfElse AST_HandleRC diff --git a/2.3-1/macros/CCodeGeneration/C_GenDeclarations_Dup.sci b/2.3-1/macros/CCodeGeneration/C_GenDeclarations_Dup.sci index 475e2e0c..bdaf9c0e 100644 --- a/2.3-1/macros/CCodeGeneration/C_GenDeclarations_Dup.sci +++ b/2.3-1/macros/CCodeGeneration/C_GenDeclarations_Dup.sci @@ -11,6 +11,10 @@ function Cdeclaration = C_GenDeclarations_Dup(InArg,NInArg,com_type,ArgStruct,CD // // Status: // 27-Oct-2007 -- Raffaele Nutricato: Author. +// +// 25-June-2017 -- Ukasha Noor: Modified it. +// This function is called for array declaration in C. +// // 10-Jun-2008 -- Raffaele Nutricato: adapted to work with realloc function. // // Copyright 2007 Raffaele Nutricato. @@ -84,6 +88,9 @@ if (ArgStruct.Dimension > 0) computedSize = computedSize + ' * ' + ArgStruct.Size(sizeIterator); computedSizeField = computedSizeField + ', ' + ArgStruct.Size(sizeIterator); end +// Modified Changes: row tells number of rows and col is number of columns in array. +// col_type tells whether it is floatComplex or doubleComplex or real. +// and accordingly it declares the array. Cdeclaration(1) = Cdeclaration(1)+C_Type(ArgStruct.Type)+' '+ArgStruct.Name+'['+computedSize+']={'; row = eval(ArgStruct.Size(1)) col = eval(ArgStruct.Size(2)) diff --git a/2.3-1/macros/CCodeGeneration/C_IfExpression.sci b/2.3-1/macros/CCodeGeneration/C_IfExpression.sci index 359b7882..630134e1 100644 --- a/2.3-1/macros/CCodeGeneration/C_IfExpression.sci +++ b/2.3-1/macros/CCodeGeneration/C_IfExpression.sci @@ -11,6 +11,7 @@ function SharedInfo = C_IfExpression(IfCondArg,NIfCondArg,Op,NOp,ASTIfExpType,Fi // // Status: // 27-Oct-2007 -- Raffaele Nutricato: Author. +// 28-June-2017 -- Ukasha Noor: Modified By // // Copyright 2007 Raffaele Nutricato. // Contact: raffaele.nutricato@tiscali.it diff --git a/2.3-1/macros/CCodeGeneration/C_WhileExpression.sci b/2.3-1/macros/CCodeGeneration/C_WhileExpression.sci index 368ccffa..36fcc4f2 100644 --- a/2.3-1/macros/CCodeGeneration/C_WhileExpression.sci +++ b/2.3-1/macros/CCodeGeneration/C_WhileExpression.sci @@ -11,6 +11,7 @@ function SharedInfo = C_WhileExpression(IfCondArg,NIfCondArg,Op,NOp,FileInfo,Sha // // Status: // 15-Nov-2007 -- Raffaele Nutricato: Author. +// 27-June-2017 -- Ukasha Noor: Modified by // // Copyright 2007 Raffaele Nutricato. // Contact: raffaele.nutricato@tiscali.it diff --git a/2.3-1/macros/CCodeGeneration/lib b/2.3-1/macros/CCodeGeneration/lib deleted file mode 100644 index 4ee8cb6c..00000000 Binary files a/2.3-1/macros/CCodeGeneration/lib and /dev/null differ diff --git a/2.3-1/macros/ErrorMessages/lib b/2.3-1/macros/ErrorMessages/lib deleted file mode 100644 index 2994abce..00000000 Binary files a/2.3-1/macros/ErrorMessages/lib and /dev/null differ diff --git a/2.3-1/macros/FunctionAnnotation/FA_GetOutArgInfo.sci b/2.3-1/macros/FunctionAnnotation/FA_GetOutArgInfo.sci index 99eaaa5f..4d1113ea 100644 --- a/2.3-1/macros/FunctionAnnotation/FA_GetOutArgInfo.sci +++ b/2.3-1/macros/FunctionAnnotation/FA_GetOutArgInfo.sci @@ -29,6 +29,7 @@ SCI2CNInArgCheck(argn(2),10,10); // --- Initialization. --- // ----------------------- + UpdatedOutArg = OutArg; for cntin = 1:NInArg IN(cntin).TP = InArg(cntin).Type; @@ -101,7 +102,19 @@ for counterout = 1:NOutArg // This is a dynamic memory extension of a local variable and for the moment // we issue an error according to SCI2C specifications // #RNU_RES_E - //disp(FunSizeAnnot) + //disp(FunSizeAnnot(2),FunSizeAnnot(1)) + //Ukasha +// if ASTFunName == svd +// x=1; +// for i=1:InArg(1).Size(1) +// for j=1:InArg(1).Size(2) +// A(i)(j)=InArg(1).Value(x); +// end +// end +// [U,S,V]=svd(A,"e"); + + + for iterOutputPosition=1:size(FunSizeAnnot, 'c') tmpeval = eval(FunSizeAnnot(counterout, iterOutputPosition)); if (IsNanSize(tmpeval)) diff --git a/2.3-1/macros/FunctionAnnotation/lib b/2.3-1/macros/FunctionAnnotation/lib deleted file mode 100644 index 0e229452..00000000 Binary files a/2.3-1/macros/FunctionAnnotation/lib and /dev/null differ diff --git a/2.3-1/macros/FunctionList/lib b/2.3-1/macros/FunctionList/lib deleted file mode 100644 index 8f8320c2..00000000 Binary files a/2.3-1/macros/FunctionList/lib and /dev/null differ diff --git a/2.3-1/macros/GeneralFunctions/lib b/2.3-1/macros/GeneralFunctions/lib deleted file mode 100644 index 7fe75a20..00000000 Binary files a/2.3-1/macros/GeneralFunctions/lib and /dev/null differ diff --git a/2.3-1/macros/Hardware/AVR/lib b/2.3-1/macros/Hardware/AVR/lib deleted file mode 100644 index a3d9e10c..00000000 Binary files a/2.3-1/macros/Hardware/AVR/lib and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/lib b/2.3-1/macros/Hardware/RasberryPi/lib deleted file mode 100644 index ac87d042..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/lib and /dev/null differ diff --git a/2.3-1/macros/ImageProcessing/core/lib b/2.3-1/macros/ImageProcessing/core/lib deleted file mode 100644 index efaf5182..00000000 Binary files a/2.3-1/macros/ImageProcessing/core/lib and /dev/null differ diff --git a/2.3-1/macros/ImageProcessing/highgui/lib b/2.3-1/macros/ImageProcessing/highgui/lib deleted file mode 100644 index 722a1503..00000000 Binary files a/2.3-1/macros/ImageProcessing/highgui/lib and /dev/null differ diff --git a/2.3-1/macros/ImageProcessing/imgproc/lib b/2.3-1/macros/ImageProcessing/imgproc/lib deleted file mode 100644 index 1f0925a0..00000000 Binary files a/2.3-1/macros/ImageProcessing/imgproc/lib and /dev/null differ diff --git a/2.3-1/macros/Scilab-Arduino/lib b/2.3-1/macros/Scilab-Arduino/lib deleted file mode 100644 index 64a3fce4..00000000 Binary files a/2.3-1/macros/Scilab-Arduino/lib and /dev/null differ diff --git a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci index 4c85408c..69885dda 100644 --- a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci +++ b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci @@ -210,7 +210,7 @@ for cntinarg = 1:NInArg PrintStringInfo(' Type: '+UpdatedInArg(cntinarg).Type,FileInfo.Funct(nxtscifunnumber).ReportFileName,'file'); PrintStringInfo(' Size(1): '+string(UpdatedInArg(cntinarg).Size(1)),FileInfo.Funct(nxtscifunnumber).ReportFileName,'file'); PrintStringInfo(' Size(2): '+string(UpdatedInArg(cntinarg).Size(2)),FileInfo.Funct(nxtscifunnumber).ReportFileName,'file'); - PrintStringInfo(' Value: '+string(UpdatedInArg(cntinarg).Value),FileInfo.Funct(nxtscifunnumber).ReportFileName,'file'); + //PrintStringInfo(' Value: '+string(UpdatedInArg(cntinarg).Value),FileInfo.Funct(nxtscifunnumber).ReportFileName,'file'); PrintStringInfo(' FindLike: '+string(UpdatedInArg(cntinarg).FindLike),FileInfo.Funct(nxtscifunnumber).ReportFileName,'file'); PrintStringInfo(' Dimension: '+string(UpdatedInArg(cntinarg).Dimension),FileInfo.Funct(nxtscifunnumber).ReportFileName,'file'); PrintStringInfo(' Scope: '+UpdatedInArg(cntinarg).Scope,FileInfo.Funct(nxtscifunnumber).ReportFileName,'file'); diff --git a/2.3-1/macros/SymbolTable/ST_InsOutArg_Dup.sci b/2.3-1/macros/SymbolTable/ST_InsOutArg_Dup.sci index bca66235..67554bd9 100644 --- a/2.3-1/macros/SymbolTable/ST_InsOutArg_Dup.sci +++ b/2.3-1/macros/SymbolTable/ST_InsOutArg_Dup.sci @@ -175,7 +175,7 @@ for counteroutput = 1:NOutArg ST_Set(OutArg(counteroutput).Name,... OutArg(counteroutput).Type,... TmpOutArgSize,... - OutArg(counteroutput).Value,... + InArg,... OutArg(counteroutput).FindLike,... OutArg(counteroutput).Dimension,... SymbTableFileName); diff --git a/2.3-1/macros/SymbolTable/lib b/2.3-1/macros/SymbolTable/lib deleted file mode 100644 index 2c57d672..00000000 Binary files a/2.3-1/macros/SymbolTable/lib and /dev/null differ diff --git a/2.3-1/macros/ToolInitialization/lib b/2.3-1/macros/ToolInitialization/lib deleted file mode 100644 index 113aba04..00000000 Binary files a/2.3-1/macros/ToolInitialization/lib and /dev/null differ diff --git a/2.3-1/macros/findDeps/lib b/2.3-1/macros/findDeps/lib deleted file mode 100644 index 4157ab8f..00000000 Binary files a/2.3-1/macros/findDeps/lib and /dev/null differ diff --git a/2.3-1/macros/lib b/2.3-1/macros/lib deleted file mode 100644 index 3c96eeb4..00000000 Binary files a/2.3-1/macros/lib and /dev/null differ diff --git a/2.3-1/macros/scilab2c.sci b/2.3-1/macros/scilab2c.sci index 197c88b0..70290d09 100644 --- a/2.3-1/macros/scilab2c.sci +++ b/2.3-1/macros/scilab2c.sci @@ -57,7 +57,7 @@ function scilab2c(varargin) RunMode = "All"; BuildTool = getNativeBuildTool(); Target = "StandAlone" - //Board_name = "uno" + Board_name = "uno" // // scilab2c(UserScilabMainFile, CCodeOutputDir, UserSciFilesPaths, RunMode) // diff --git a/2.3-1/src/c/string/strcspn/gstrcspna.c b/2.3-1/src/c/string/strcspn/gstrcspna.c index 75912e9d..4dcdcdf6 100644 --- a/2.3-1/src/c/string/strcspn/gstrcspna.c +++ b/2.3-1/src/c/string/strcspn/gstrcspna.c @@ -15,8 +15,7 @@ uint8 gstrcspna(char *str1,int size1,char *str2,int size2) { int ind,i,j;; - for(i=0;i<=size1;i++) - int j; + for(i=0;i<=size1;i++) { for(j=0;j<=size2;j++) diff --git a/2.3-1/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci b/2.3-1/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci index 13624cfb..c6e09a0c 100644 --- a/2.3-1/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci +++ b/2.3-1/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci @@ -1,4 +1,4 @@ -//SCI2C: DEFAULT_PRECISION= DOUBLE +//SCI2C: DEFAULT_PRECISION= FLOAT function mainfunction() diff --git a/2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci b/2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci new file mode 100644 index 00000000..33c44622 --- /dev/null +++ b/2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci @@ -0,0 +1,7 @@ +//SCI2C: DEFAULT_PRECISION= FLOAT +//test for discrete cosine tranform using precision as float +function main() + b=([5 2 6 7;1 9 7 6+%i]) + y=dct(b,1) //calling dct + disp(y) +endfunction diff --git a/2.3-1/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci b/2.3-1/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci new file mode 100644 index 00000000..deed0f99 --- /dev/null +++ b/2.3-1/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci @@ -0,0 +1,7 @@ +//SCI2C: DEFAULT_PRECISION= FLOAT +//test for inverse discrete cosine tranfrom +function testidct() + b=[1 2 3;4 5 6+%i] //declaring complex matrix + y=idct(b) //calling idct + disp(y) +endfunction -- cgit