|
| 1 | +// Copyright (C) 2017 - IIT Bombay - FOSSEE |
| 2 | +// |
| 3 | +// This file must be used under the terms of the BSD. |
| 4 | +// This source file is licensed as described in the file LICENSE, which |
| 5 | +// you should have received as part of this distribution. The terms |
| 6 | +// are also available at |
| 7 | +// https://opensource.org/licenses/BSD-3-Clause |
| 8 | +// Author: Shamika Mohanan |
| 9 | +// Organization: FOSSEE, IIT Bombay |
| 10 | + |
| 11 | + |
| 12 | +mprintf("Start FOSSEE Image Processing Toolbox\n"); |
| 13 | + |
| 14 | +[a, opt] = getversion(); |
| 15 | +Version = opt(2); |
| 16 | + |
| 17 | +etc_tlbx = get_absolute_file_path("FOSSEE_Image_Processing_Toolbox.start"); |
| 18 | +etc_tlbx = getshortpathname(etc_tlbx); |
| 19 | +root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") ); |
| 20 | + |
| 21 | +//Load functions library |
| 22 | +// ============================================================================= |
| 23 | +mprintf("\tLoad macros\n"); |
| 24 | +pathmacros = pathconvert( root_tlbx ) + "macros" + filesep(); |
| 25 | +fipt_lib = lib(pathmacros); |
| 26 | +clear pathmacros; |
| 27 | + |
| 28 | +// load gateways |
| 29 | +// ============================================================================= |
| 30 | + |
| 31 | +mprintf("\tLoad gateways\n"); |
| 32 | +[a, opt] = getversion(); |
| 33 | +Version = opt(2); |
| 34 | +ilib_verbose(0); |
| 35 | +if getos()=="Windows" then |
| 36 | +// lib_path = root_tlbx + "/thirdparty/windows/bin/" + Version;*/ |
| 37 | +// link(lib_path+filesep()+"IpOptFSS.dll");*/ |
| 38 | +// link(lib_path+filesep()+"IpOpt-vc10.dll");*/ |
| 39 | +else |
| 40 | + lib_path = root_tlbx + "/thirdparty/linux/lib/" + Version; |
| 41 | +// lib_path="/usr/lib";*/ |
| 42 | +// link(lib_path + "/libopencv_core.so");*/ |
| 43 | +// link(lib_path + "/libopencv_highgui.so");*/ |
| 44 | +// link(lib_path + "/libopencv_imgproc.so");*/ |
| 45 | + |
| 46 | +end |
| 47 | +exec(pathconvert(root_tlbx + filesep() + "sci_gateway" + filesep() + "loader_gateway.sce",%f)); |
| 48 | + |
| 49 | +// Load and add help chapter |
| 50 | +// ============================================================================= |
| 51 | +if ( %t ) then |
| 52 | +if or(getscilabmode() == ["NW";"STD"]) then |
| 53 | + mprintf("\tLoad help\n"); |
| 54 | + path_addchapter = pathconvert(root_tlbx+"/jar"); |
| 55 | + if ( isdir(path_addchapter) <> [] ) then |
| 56 | + add_help_chapter("FOSSEE_Image_Processing_Toolbox", path_addchapter, %F); |
| 57 | + clear add_help_chapter; |
| 58 | + end |
| 59 | + clear path_addchapter; |
| 60 | +end |
| 61 | +end |
| 62 | + |
| 63 | +// add demos |
| 64 | +// ============================================================================= |
| 65 | + |
| 66 | +if ( %t ) then |
| 67 | +if or(getscilabmode() == ["NW";"STD"]) then |
| 68 | + mprintf("\tLoad demos\n"); |
| 69 | + //pathdemos = pathconvert(root_tlbx+"/demos/sci_FOSSEE_Image_Processing_Toolbox.dem.gateway.sce",%f,%t); |
| 70 | + //add_demo("FOSSEE_Image_Processing_Toolbox",pathdemos); |
| 71 | + //clear pathdemos ; |
| 72 | +end |
| 73 | +end |
| 74 | + |
| 75 | +// ============================================================================= |
| 76 | + |
| 77 | +clear etc_tlbx root_tlbx Version a opt lib_path; |
0 commit comments