Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
optics
xgi
Commits
9d800209
Commit
9d800209
authored
Nov 02, 2021
by
flechsig
Browse files
add license
parent
592c0b2a
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
831 additions
and
0 deletions
+831
-0
C-implementation/Makefile
C-implementation/Makefile
+27
-0
C-implementation/xgi.cpp
C-implementation/xgi.cpp
+26
-0
C-implementation/xgi.h
C-implementation/xgi.h
+26
-0
LICENSE
LICENSE
+674
-0
Matlab/example2.m
Matlab/example2.m
+26
-0
Matlab/read_img.m
Matlab/read_img.m
+26
-0
Matlab/xgi_func2.m
Matlab/xgi_func2.m
+26
-0
No files found.
C-implementation/Makefile
View file @
9d800209
...
...
@@ -2,6 +2,33 @@
# tested on RH7 and SUSE TW
# Version Oct 2021
# ******************************************************************************
#
# Copyright (C) 2021 Paul Scherrer Institut Villigen, Switzerland
#
# Author Juraj Krempasky, juraj.krempasky@psi.ch
# Uwe Flechsig, uwe.flechsig@psi.ch
#
# ------------------------------------------------------------------------------
#
# This file is part of xgi.
#
# xgi is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License, or
# (at your option) any later version.
#
# xgi is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with xgi (LICENSE). If not, see <http://www.gnu.org/licenses/>.
#
# ******************************************************************************
# tools
CC
=
g++
...
...
C-implementation/xgi.cpp
View file @
9d800209
// ******************************************************************************
//
// Copyright (C) 2021 Paul Scherrer Institut Villigen, Switzerland
//
// Author Juraj Krempasky, juraj.krempasky@psi.ch
// Uwe Flechsig, uwe.flechsig@psi.ch
//
// ------------------------------------------------------------------------------
//
// This file is part of xgi.
//
// xgi is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 3 of the License, or
// (at your option) any later version.
//
// xgi is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with xgi (LICENSE). If not, see <http://www.gnu.org/licenses/>.
//
// ******************************************************************************
#include "xgi.h"
#include <stdio.h>
#include <math.h>
...
...
C-implementation/xgi.h
View file @
9d800209
// ******************************************************************************
//
// Copyright (C) 2021 Paul Scherrer Institut Villigen, Switzerland
//
// Author Juraj Krempasky, juraj.krempasky@psi.ch
// Uwe Flechsig, uwe.flechsig@psi.ch
//
// ------------------------------------------------------------------------------
//
// This file is part of xgi.
//
// xgi is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 3 of the License, or
// (at your option) any later version.
//
// xgi is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with xgi (LICENSE). If not, see <http://www.gnu.org/licenses/>.
//
// ******************************************************************************
#ifndef XGI_H
#define XGI_H
...
...
LICENSE
0 → 100644
View file @
9d800209
This diff is collapsed.
Click to expand it.
Matlab/example2.m
View file @
9d800209
% ******************************************************************************
%
% Copyright (C) 2021 Paul Scherrer Institut Villigen, Switzerland
%
% Author Juraj Krempasky, juraj.krempasky@psi.ch
% Uwe Flechsig, uwe.flechsig@psi.ch
%
% ------------------------------------------------------------------------------
%
% This file is part of xgi.
%
% xgi is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, version 3 of the License, or
% (at your option) any later version.
%
% xgi is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with xgi (LICENSE). If not, see <http://www.gnu.org/licenses/>.
%
% ******************************************************************************
clear
all
;
dir_path
=
struct
;
%uf dir_path.expdata = '.\'; % windows
...
...
Matlab/read_img.m
View file @
9d800209
% ******************************************************************************
%
% Copyright (C) 2021 Paul Scherrer Institut Villigen, Switzerland
%
% Author Juraj Krempasky, juraj.krempasky@psi.ch
% Uwe Flechsig, uwe.flechsig@psi.ch
%
% ------------------------------------------------------------------------------
%
% This file is part of xgi.
%
% xgi is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, version 3 of the License, or
% (at your option) any later version.
%
% xgi is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with xgi (LICENSE). If not, see <http://www.gnu.org/licenses/>.
%
% ******************************************************************************
function
[
img_stack
]
=
read_img
(
dir_path
,
img_nb
,
file_base
)
file_ext
=
'h5'
;
...
...
Matlab/xgi_func2.m
View file @
9d800209
% ******************************************************************************
%
% Copyright (C) 2021 Paul Scherrer Institut Villigen, Switzerland
%
% Author Juraj Krempasky, juraj.krempasky@psi.ch
% Uwe Flechsig, uwe.flechsig@psi.ch
%
% ------------------------------------------------------------------------------
%
% This file is part of xgi.
%
% xgi is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, version 3 of the License, or
% (at your option) any later version.
%
% xgi is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with xgi (LICENSE). If not, see <http://www.gnu.org/licenses/>.
%
% ******************************************************************************
function
[
out
]
=
xgi_func2
(
img
,
ip
)
ROC
=
0
;
laxis
=
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment