Skip to content

Pull Request #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added data/body-v2.ply
Binary file not shown.
34 changes: 34 additions & 0 deletions etc/FOSSEE_Image_Processing_Toolbox.quit
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the BSD.
// This source file is licensed as described in the file LICENSE, which
// you should have received as part of this distribution. The terms
// are also available at
// https://opensource.org/licenses/BSD-3-Clause
// Author: Shamika Mohanan
// Organization: FOSSEE, IIT Bombay
// Email: [email protected]


function quitModule()

etc_tlbx = get_absolute_file_path("FOSSEE_Image_Processing_Toolbox.quit");
etc_tlbx = getshortpathname(etc_tlbx);
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );

//unlink libraries
[bOK, ilib] = c_link('FOSSEE_Optimization_Toolbox');
if bOK then
ulink(ilib);
end

// Remove Preferences GUI
// =============================================================================
if getscilabmode() == "STD" then
removeModulePreferences(root_tlbx);
end
ulink();
endfunction

clear quitModule;

34 changes: 34 additions & 0 deletions etc/FOSSEE_Image_Processing_Toolbox.quit~
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the BSD.
// This source file is licensed as described in the file LICENSE, which
// you should have received as part of this distribution. The terms
// are also available at
// https://opensource.org/licenses/BSD-3-Clause
// Author: Shamika Mohanan
// Organization: FOSSEE, IIT Bombay
// Email: [email protected]


function quitModule()

etc_tlbx = get_absolute_file_path("FOSSEE_Image_Processin_Toolbox.quit");
etc_tlbx = getshortpathname(etc_tlbx);
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );

//unlink libraries
[bOK, ilib] = c_link('FOSSEE_Optimization_Toolbox');
if bOK then
ulink(ilib);
end

// Remove Preferences GUI
// =============================================================================
if getscilabmode() == "STD" then
removeModulePreferences(root_tlbx);
end
ulink();
endfunction

clear quitModule;

83 changes: 83 additions & 0 deletions etc/FOSSEE_Image_Processing_Toolbox.start
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
// Copyright (C) 2017 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the BSD.
// This source file is licensed as described in the file LICENSE, which
// you should have received as part of this distribution. The terms
// are also available at
// https://opensource.org/licenses/BSD-3-Clause
// Author: Shamika Mohanan
// Organization: FOSSEE, IIT Bombay
// Email: [email protected]

mprintf("Start FOSSEE Image Processing Toolbox\n");

[a, opt] = getversion();
Version = opt(2);

etc_tlbx = get_absolute_file_path("FOSSEE_Image_Processing_Toolbox.start");
etc_tlbx = getshortpathname(etc_tlbx);
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );

//Load functions library
// =============================================================================
mprintf("\tLoad macros\n");
pathmacros = pathconvert( root_tlbx ) + "macros" + filesep();
fipt_lib = lib(pathmacros);
clear pathmacros;

// load gateways
// =============================================================================

mprintf("\tLoad gateways\n");
[a, opt] = getversion();
Version = opt(2);
ilib_verbose(0);
if getos()=="Windows" then
// lib_path = root_tlbx + "/thirdparty/windows/bin/" + Version;*/
// link(lib_path+filesep()+"IpOptFSS.dll");*/
// link(lib_path+filesep()+"IpOpt-vc10.dll");*/
else
//lib_path = root_tlbx + "/thirdparty/linux/lib/" + Version;
// lib_path="/usr/lib";*/
//link(lib_path + "/libopencv_core.so");
//link(lib_path + "/libopencv_highgui.so");
//link(lib_path + "/libopencv_imgproc.so");
lib_path="/usr/local/lib";
link(lib_path + "/libopencv_core.so");
link(lib_path + "/libopencv_highgui.so");
link(lib_path + "/libopencv_imgproc.so");


end
exec(pathconvert(root_tlbx + filesep() + "sci_gateway" + filesep() + "loader_gateway.sce",%f));

// Load and add help chapter
// =============================================================================
//if ( %t ) then
//if or(getscilabmode() == ["NW";"STD"]) then
// mprintf("\tLoad help\n");
// path_addchapter = pathconvert(root_tlbx+"/jar");
// if ( isdir(path_addchapter) <> [] ) then
// add_help_chapter("FOSSEE_Image_Processing_Toolbox", path_addchapter, %F);
// clear add_help_chapter;
// end
// clear path_addchapter;
//end
//end


// add demos
// =============================================================================

if ( %t ) then
if or(getscilabmode() == ["NW";"STD"]) then
mprintf("\tLoad demos\n");
//pathdemos = pathconvert(root_tlbx+"/demos/sci_FOSSEE_Image_Processing_Toolbox.dem.gateway.sce",%f,%t);
//add_demo("FOSSEE_Image_Processing_Toolbox",pathdemos);
//clear pathdemos ;
end
end

// =============================================================================

clear etc_tlbx root_tlbx Version a opt lib_path;
77 changes: 77 additions & 0 deletions etc/FOSSEE_Image_Processing_Toolbox.start~
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
// Copyright (C) 2017 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the BSD.
// This source file is licensed as described in the file LICENSE, which
// you should have received as part of this distribution. The terms
// are also available at
// https://opensource.org/licenses/BSD-3-Clause
// Author: Shamika Mohanan
// Organization: FOSSEE, IIT Bombay
// Email: [email protected]

mprintf("Start FOSSEE Image Processing Toolbox\n");

[a, opt] = getversion();
Version = opt(2);

etc_tlbx = get_absolute_file_path("FOSSEE_Image_Processing_Toolbox.start");
etc_tlbx = getshortpathname(etc_tlbx);
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );

//Load functions library
// =============================================================================
mprintf("\tLoad macros\n");
pathmacros = pathconvert( root_tlbx ) + "macros" + filesep();
fipt_lib = lib(pathmacros);
clear pathmacros;

// load gateways
// =============================================================================

mprintf("\tLoad gateways\n");
[a, opt] = getversion();
Version = opt(2);
ilib_verbose(0);
if getos()=="Windows" then
// lib_path = root_tlbx + "/thirdparty/windows/bin/" + Version;*/
// link(lib_path+filesep()+"IpOptFSS.dll");*/
// link(lib_path+filesep()+"IpOpt-vc10.dll");*/
else
lib_path = root_tlbx + "/thirdparty/linux/lib/" + Version;
// lib_path="/usr/lib";*/
// link(lib_path + "/libopencv_core.so");*/
// link(lib_path + "/libopencv_highgui.so");*/
// link(lib_path + "/libopencv_imgproc.so");*/

end
exec(pathconvert(root_tlbx + filesep() + "sci_gateway" + filesep() + "loader_gateway.sce",%f));

// Load and add help chapter
// =============================================================================
if ( %t ) then
if or(getscilabmode() == ["NW";"STD"]) then
mprintf("\tLoad help\n");
path_addchapter = pathconvert(root_tlbx+"/jar");
if ( isdir(path_addchapter) <> [] ) then
add_help_chapter("FOSSEE_Image_Processing_Toolbox", path_addchapter, %F);
clear add_help_chapter;
end
clear path_addchapter;
end
end

// add demos
// =============================================================================

if ( %t ) then
if or(getscilabmode() == ["NW";"STD"]) then
mprintf("\tLoad demos\n");
//pathdemos = pathconvert(root_tlbx+"/demos/sci_FOSSEE_Image_Processing_Toolbox.dem.gateway.sce",%f,%t);
//add_demo("FOSSEE_Image_Processing_Toolbox",pathdemos);
//clear pathdemos ;
end
end

// =============================================================================

clear etc_tlbx root_tlbx Version a opt lib_path;
34 changes: 34 additions & 0 deletions etc/FOSSEE_Optimization_Toolbox.quit~
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the BSD.
// This source file is licensed as described in the file LICENSE, which
// you should have received as part of this distribution. The terms
// are also available at
// https://opensource.org/licenses/BSD-3-Clause
// Author: Harpreet Singh
// Organization: FOSSEE, IIT Bombay
// Email: [email protected]


function quitModule()

etc_tlbx = get_absolute_file_path("FOSSEE_Optimization_Toolbox.quit");
etc_tlbx = getshortpathname(etc_tlbx);
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );

//unlink libraries
[bOK, ilib] = c_link('FOSSEE_Optimization_Toolbox');
if bOK then
ulink(ilib);
end

// Remove Preferences GUI
// =============================================================================
if getscilabmode() == "STD" then
removeModulePreferences(root_tlbx);
end
ulink();
endfunction

clear quitModule;

85 changes: 85 additions & 0 deletions etc/FOSSEE_Optimization_Toolbox.start~
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
// Copyright (C) 2017 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the BSD.
// This source file is licensed as described in the file LICENSE, which
// you should have received as part of this distribution. The terms
// are also available at
// https://opensource.org/licenses/BSD-3-Clause
// Author: Shamika Mohanan
// Organization: FOSSEE, IIT Bombay
// Email: [email protected]

mprintf("Start FOSSEE Image Processing Toolbox\n");

[a, opt] = getversion();
Version = opt(2);

etc_tlbx = get_absolute_file_path("FOSSEE_Image_Processing_Toolbox.start");
etc_tlbx = getshortpathname(etc_tlbx);
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );

//Load functions library
// =============================================================================
mprintf("\tLoad macros\n");
pathmacros = pathconvert( root_tlbx ) + "macros" + filesep();
symphony_lib = lib(pathmacros);
clear pathmacros;

// load gateways
// =============================================================================

mprintf("\tLoad gateways\n");
[a, opt] = getversion();
Version = opt(2);
ilib_verbose(0);
if getos()=="Windows" then
lib_path = root_tlbx + "/thirdparty/windows/bin/" + Version;
link(lib_path+filesep()+"IpOptFSS.dll");
link(lib_path+filesep()+"IpOpt-vc10.dll");
else
lib_path = root_tlbx + "/thirdparty/linux/lib/" + Version;
link(lib_path + "/libCoinUtils.so");
link(lib_path + "/libClp.so");
link(lib_path + "/libClpSolver.so");
link(lib_path + "/libOsi.so");
link(lib_path + "/libOsiCommonTests.so");
link(lib_path + "/libOsiClp.so");
link(lib_path + "/libCgl.so");
link(lib_path + "/libSym.so");
link(lib_path + "/libOsiSym.so");
link(lib_path + "/libcoinblas.so");
link(lib_path + "/libcoinlapack.so");
link(lib_path + "/libcoinmumps.so");
link(lib_path + "/libipopt.so");
end
exec(pathconvert(root_tlbx + filesep() + "sci_gateway" + filesep() + "loader_gateway.sce",%f));

// Load and add help chapter
// =============================================================================
if ( %t ) then
if or(getscilabmode() == ["NW";"STD"]) then
mprintf("\tLoad help\n");
path_addchapter = pathconvert(root_tlbx+"/jar");
if ( isdir(path_addchapter) <> [] ) then
add_help_chapter("FOSSEE_Optimization_Toolbox", path_addchapter, %F);
clear add_help_chapter;
end
clear path_addchapter;
end
end

// add demos
// =============================================================================

if ( %t ) then
if or(getscilabmode() == ["NW";"STD"]) then
mprintf("\tLoad demos\n");
pathdemos = pathconvert(root_tlbx+"/demos/sci_FOSSEE_Image_Processing_Toolbox.dem.gateway.sce",%f,%t);
add_demo("FOSSEE_Image_Processing_Toolbox",pathdemos);
clear pathdemos ;
end
end

// =============================================================================

clear etc_tlbx root_tlbx Version a opt lib_path;
21 changes: 21 additions & 0 deletions help/builder_help.sce
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// Author: Shamika Mohanan
// Organization: FOSSEE, IIT Bombay
// Email: [email protected]
// This file must be used under the terms of the BSD.
// This source file is licensed as described in the file LICENSE, which
// you should have received as part of this distribution. The terms
// are also available at
// https://opensource.org/licenses/BSD-3-Clause

mode(-1)
lines(0)

toolbox_title = "FOSSEE_Image_Processing_Toolbox"

help_dir = get_absolute_file_path('builder_help.sce');

tbx_builder_help_lang("en_US", help_dir);

clear toolbox_title;
21 changes: 21 additions & 0 deletions help/builder_help.sce~
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// Author: Harpreet Singh
// Organization: FOSSEE, IIT Bombay
// Email: [email protected]
// This file must be used under the terms of the BSD.
// This source file is licensed as described in the file LICENSE, which
// you should have received as part of this distribution. The terms
// are also available at
// https://opensource.org/licenses/BSD-3-Clause

mode(-1)
lines(0)

toolbox_title = "FOSSEE_Optimization_Toolbox"

help_dir = get_absolute_file_path('builder_help.sce');

tbx_builder_help_lang("en_US", help_dir);

clear toolbox_title;
Loading