Skip to content

Commit a6df67e

Browse files
committed
First Commit
0 parents  commit a6df67e

File tree

1,754 files changed

+304639
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,754 files changed

+304639
-0
lines changed

builder.sce

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
mode(-1);
2+
3+
// Copyright (C) 2017 - IIT Bombay - FOSSEE
4+
//
5+
// This file must be used under the terms of the BSD.
6+
// This source file is licensed as described in the file LICENSE, which
7+
// you should have received as part of this distribution. The terms
8+
// are also available at
9+
// https://opensource.org/licenses/BSD-3-Clause
10+
// Author: Shamika Mohanan
11+
// Organization: FOSSEE, IIT Bombay
12+
13+
14+
lines(0);
15+
try
16+
getversion('scilab');
17+
catch
18+
error(gettext('Scilab 5.5.0 or more is required.'));
19+
end;
20+
21+
// ====================================================================
22+
if ~with_module("development_tools") then
23+
error(msprintf(gettext("%s module not installed."),"development_tools"));
24+
end
25+
// ====================================================================
26+
TOOLBOX_NAME = "FOSSEE_Image_Processing_Toolbox";
27+
TOOLBOX_TITLE = "FOSSEE Image Processing Toolbox";
28+
// ====================================================================
29+
30+
31+
toolbox_dir = get_absolute_file_path("builder.sce");
32+
33+
tbx_builder_macros(toolbox_dir);
34+
tbx_builder_gateway(toolbox_dir);
35+
tbx_builder_help(toolbox_dir);
36+
tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
37+
tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir);
38+
39+
clear toolbox_dir TOOLBOX_NAME TOOLBOX_TITLE;

builder.sce~

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
mode(-1);
2+
3+
// Copyright (C) 2017 - IIT Bombay - FOSSEE
4+
//
5+
// This file must be used under the terms of the BSD.
6+
// This source file is licensed as described in the file LICENSE, which
7+
// you should have received as part of this distribution. The terms
8+
// are also available at
9+
// https://opensource.org/licenses/BSD-3-Clause
10+
// Author: Shamika Mohanan
11+
// Organization: FOSSEE, IIT Bombay
12+
13+
14+
lines(0);
15+
try
16+
getversion('scilab');
17+
catch
18+
error(gettext('Scilab 5.5.0 or more is required.'));
19+
end;
20+
21+
// ====================================================================
22+
if ~with_module("development_tools") then
23+
error(msprintf(gettext("%s module not installed."),"development_tools"));
24+
end
25+
// ====================================================================
26+
TOOLBOX_NAME = "FOSSEE_Image_Processing_Toolbox";
27+
TOOLBOX_TITLE = "FOSSEE Image Processing Toolbox";
28+
// ====================================================================
29+
30+
31+
toolbox_dir = get_absolute_file_path("builder.sce");
32+
33+
tbx_builder_macros(toolbox_dir);
34+
//tbx_builder_gateway(toolbox_dir);
35+
tbx_builder_help(toolbox_dir);
36+
tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
37+
tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir);
38+
39+
clear toolbox_dir TOOLBOX_NAME TOOLBOX_TITLE;

cleaner.sce

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// This file is released under the 3-clause BSD license. See COPYING-BSD.
2+
// Generated by builder.sce: Please, do not edit this file
3+
4+
try
5+
getversion("scilab");
6+
catch
7+
error("Scilab 5.0 or more is required.");
8+
end
9+
function perform_clean()
10+
root_tlbx = get_absolute_file_path('cleaner.sce');
11+
12+
if isfile(root_tlbx + '/macros/cleanmacros.sce') then
13+
exec(root_tlbx+'/macros/cleanmacros.sce');
14+
end
15+
16+
if isfile(root_tlbx + '/src/cleaner_src.sce') then
17+
exec(root_tlbx+'/src/cleaner_src.sce');
18+
end
19+
20+
if isfile(root_tlbx + "/sci_gateway/cleaner_gateway.sce") then
21+
exec(root_tlbx + "/sci_gateway/cleaner_gateway.sce");
22+
mdelete(root_tlbx + "/sci_gateway/cleaner_gateway.sce");
23+
end
24+
25+
if isfile(root_tlbx + "/help/cleaner_help.sce") then
26+
exec(root_tlbx + "/help/cleaner_help.sce");
27+
end
28+
29+
if isfile(root_tlbx + "/loader.sce") then
30+
mdelete(root_tlbx + "/loader.sce");
31+
end
32+
33+
if isfile(root_tlbx + "/unloader.sce") then
34+
mdelete(root_tlbx + "/unloader.sce");
35+
end
36+
endfunction
37+
perform_clean();
38+
clear perform_clean;
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright (C) 2015 - 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+
13+
function quitModule()
14+
15+
etc_tlbx = get_absolute_file_path("FOSSEE_Image_Processing_Toolbox.quit");
16+
etc_tlbx = getshortpathname(etc_tlbx);
17+
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );
18+
19+
//unlink libraries
20+
[bOK, ilib] = c_link('FOSSEE_Optimization_Toolbox');
21+
if bOK then
22+
ulink(ilib);
23+
end
24+
25+
// Remove Preferences GUI
26+
// =============================================================================
27+
if getscilabmode() == "STD" then
28+
removeModulePreferences(root_tlbx);
29+
end
30+
ulink();
31+
endfunction
32+
33+
clear quitModule;
34+
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright (C) 2015 - 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+
13+
function quitModule()
14+
15+
etc_tlbx = get_absolute_file_path("FOSSEE_Image_Processin_Toolbox.quit");
16+
etc_tlbx = getshortpathname(etc_tlbx);
17+
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );
18+
19+
//unlink libraries
20+
[bOK, ilib] = c_link('FOSSEE_Optimization_Toolbox');
21+
if bOK then
22+
ulink(ilib);
23+
end
24+
25+
// Remove Preferences GUI
26+
// =============================================================================
27+
if getscilabmode() == "STD" then
28+
removeModulePreferences(root_tlbx);
29+
end
30+
ulink();
31+
endfunction
32+
33+
clear quitModule;
34+
+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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;
+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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;

etc/FOSSEE_Optimization_Toolbox.quit~

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright (C) 2015 - 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: Harpreet Singh
9+
// Organization: FOSSEE, IIT Bombay
10+
11+
12+
13+
function quitModule()
14+
15+
etc_tlbx = get_absolute_file_path("FOSSEE_Optimization_Toolbox.quit");
16+
etc_tlbx = getshortpathname(etc_tlbx);
17+
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );
18+
19+
//unlink libraries
20+
[bOK, ilib] = c_link('FOSSEE_Optimization_Toolbox');
21+
if bOK then
22+
ulink(ilib);
23+
end
24+
25+
// Remove Preferences GUI
26+
// =============================================================================
27+
if getscilabmode() == "STD" then
28+
removeModulePreferences(root_tlbx);
29+
end
30+
ulink();
31+
endfunction
32+
33+
clear quitModule;
34+

0 commit comments

Comments
 (0)