Skip to content

Shreyash's commit #3

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 7 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions README.md

This file was deleted.

39 changes: 39 additions & 0 deletions builder.sce
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
mode(-1);

// 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]

lines(0);
try
getversion('scilab');
catch
error(gettext('Scilab 5.5.0 or more is required.'));
end;

// ====================================================================
if ~with_module("development_tools") then
error(msprintf(gettext("%s module not installed."),"development_tools"));
end
// ====================================================================
TOOLBOX_NAME = "FOSSEE_Image_Processing_Toolbox";
TOOLBOX_TITLE = "FOSSEE Image Processing Toolbox";
// ====================================================================


toolbox_dir = get_absolute_file_path("builder.sce");

tbx_builder_macros(toolbox_dir);
tbx_builder_gateway(toolbox_dir);
tbx_builder_help(toolbox_dir);
tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir);

clear toolbox_dir TOOLBOX_NAME TOOLBOX_TITLE;
39 changes: 39 additions & 0 deletions builder.sce~
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
mode(-1);

// 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]

lines(0);
try
getversion('scilab');
catch
error(gettext('Scilab 5.5.0 or more is required.'));
end;

// ====================================================================
if ~with_module("development_tools") then
error(msprintf(gettext("%s module not installed."),"development_tools"));
end
// ====================================================================
TOOLBOX_NAME = "FOSSEE_Image_Processing_Toolbox";
TOOLBOX_TITLE = "FOSSEE Image Processing Toolbox";
// ====================================================================


toolbox_dir = get_absolute_file_path("builder.sce");

tbx_builder_macros(toolbox_dir);
//tbx_builder_gateway(toolbox_dir);
tbx_builder_help(toolbox_dir);
tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir);

clear toolbox_dir TOOLBOX_NAME TOOLBOX_TITLE;
38 changes: 38 additions & 0 deletions cleaner.sce
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// This file is released under the 3-clause BSD license. See COPYING-BSD.
// Generated by builder.sce: Please, do not edit this file

try
getversion("scilab");
catch
error("Scilab 5.0 or more is required.");
end
function perform_clean()
root_tlbx = get_absolute_file_path('cleaner.sce');

if isfile(root_tlbx + '/macros/cleanmacros.sce') then
exec(root_tlbx+'/macros/cleanmacros.sce');
end

if isfile(root_tlbx + '/src/cleaner_src.sce') then
exec(root_tlbx+'/src/cleaner_src.sce');
end

if isfile(root_tlbx + "/sci_gateway/cleaner_gateway.sce") then
exec(root_tlbx + "/sci_gateway/cleaner_gateway.sce");
mdelete(root_tlbx + "/sci_gateway/cleaner_gateway.sce");
end

if isfile(root_tlbx + "/help/cleaner_help.sce") then
exec(root_tlbx + "/help/cleaner_help.sce");
end

if isfile(root_tlbx + "/loader.sce") then
mdelete(root_tlbx + "/loader.sce");
end

if isfile(root_tlbx + "/unloader.sce") then
mdelete(root_tlbx + "/unloader.sce");
end
endfunction
perform_clean();
clear perform_clean;
16,006 changes: 16,006 additions & 0 deletions data/bag_of_features/Bag-Of-Features.yml

Large diffs are not rendered by default.

16,001 changes: 16,001 additions & 0 deletions data/bag_of_features/bagoffeatures2set.yml

Large diffs are not rendered by default.

16,006 changes: 16,006 additions & 0 deletions data/bag_of_features/bagoffeatures400newset.yml

Large diffs are not rendered by default.

16,006 changes: 16,006 additions & 0 deletions data/bag_of_features/bagoffeaturesnewset.yml

Large diffs are not rendered by default.

Binary file added data/dat_files/calib.dat
Binary file not shown.
Binary file added data/dat_files/imfuse.dat
Binary file not shown.
Binary file added data/dat_files/jado.dat
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;

82 changes: 82 additions & 0 deletions etc/FOSSEE_Image_Processing_Toolbox.start
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
// 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="/user/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;

Loading