Skip to content
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

1st Patch Release for Blaise - v2.10.1 #461

Merged
merged 119 commits into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
7f02b9a
Merge remote-tracking branch 'origin/master' into dev
wahln Mar 4, 2020
fe2680d
Improvements to standalone compilation
wahln Aug 12, 2020
117a462
Merge branch 'dev' of https://github.com/e0404/matRad into dev
wahln Aug 12, 2020
be2d1ed
dicom fix for data that uses "SpacingBetweenSlices" instead of "Slice…
wahln Aug 12, 2020
084545d
remove unecessary global for matRad_cfg
wahln Aug 12, 2020
8b3b7e5
add matRad_cfg to hlut reading
wahln Aug 12, 2020
87fc602
fixes a bug occuring due to matlab now reading the "SeriesNumber" as …
wahln Aug 26, 2020
5923688
add configuration option for omitting HU to rSP / rED conversion and …
wahln Aug 26, 2020
539c367
testing now on copies of examples to avoid filechanges
wahln Aug 26, 2020
ca1a971
compatability fix
wahln Aug 26, 2020
f3cb84c
fixes an incorrect call of matRad_calcCubes (up to now without conseq…
wahln Sep 1, 2020
d6589b5
Move gradient projection to Projection classes, use them to identify …
wahln Sep 11, 2020
309d49a
no warndlg for LET warning, just plain console output
wahln Sep 11, 2020
eac8e55
hotfix in constraint function
wahln Sep 11, 2020
e8ecec3
Merge branch 'dev' of https://github.com/e0404/matRad into dev
wahln Sep 16, 2020
4057167
fix constant RBE missing in constraint jacobian
wahln Sep 16, 2020
753fbf6
fix travis building pipeline to new version of mexIPOPT and set to de…
wahln Sep 16, 2020
895322f
some fixes and additions to the file header documentation
Sep 16, 2020
378b769
Merge branch 'dev' of https://github.com/e0404/matRad into dev_improv…
Sep 16, 2020
5f960da
Fix classname of MatRad_Config
wahln Sep 18, 2020
e570e4b
Update matRad_importDicomRTPlan.m
wahln Sep 18, 2020
fc12c27
remove old backprojection
wahln Sep 23, 2020
454e1c3
Substantial reduction of jacobian evaluation time (factor 10 to 100) …
wahln Sep 23, 2020
548d5e0
changes to travis testing, including matlab
wahln Sep 23, 2020
1ec002f
move travis scripts
wahln Sep 23, 2020
0b08132
fix travis pipeline
wahln Sep 23, 2020
79ee865
execution permissions
wahln Sep 23, 2020
78efa55
typo fix in travis yml
wahln Sep 23, 2020
2579def
update git command in ipopt compilation script
wahln Sep 24, 2020
9533f89
update travis for octave 5 and matlab testing
wahln Sep 25, 2020
6872f05
update changelog
wahln Sep 25, 2020
a7d6166
Getting started and Need help was added
Sep 25, 2020
d87b6de
Getting started and Need help was added
Sep 25, 2020
d859e34
formal changes
Sep 25, 2020
a01f023
formal changes
Sep 25, 2020
c28c9f8
Update README.md
wahln Sep 25, 2020
aeb414f
Update matRad_directApertureOptimization.m
wahln Sep 25, 2020
5d8e910
Update matRad_MinMaxEUD.m
wahln Sep 25, 2020
dee51ce
Updated and fixed file headers (dose objectives and dose constraints)
palkma Sep 28, 2020
4d69f83
Updated and fixed file headers (dose objectives and constraints)
palkma Sep 28, 2020
0958b32
Updated and fixed file headers (dose objectives and dose constraints)
palkma Sep 28, 2020
299f714
fix SSD display in photon dose calculation
wahln Oct 6, 2020
70f3a94
some display fixes and allow enabling custom primary fluence in pln.p…
wahln Oct 6, 2020
4bf401b
Merge branch 'dev_improveDocs' of https://github.com/palkma/matRad in…
palkma Oct 7, 2020
faafdba
small correction to photon ompMC calibration
wahln Oct 8, 2020
9277915
changes to logging mechanism in MatRad_Config, which now also stores …
wahln Oct 9, 2020
65fcdd4
replacing brute-force closing of waitbars in dose calculation with sp…
wahln Oct 9, 2020
1cda2d7
Merge branch 'dev' into rc/v2.10.1
wahln Oct 9, 2020
a6154fd
include testing modifications from dev_varRBErobOpt
wahln Oct 9, 2020
6880d54
change writing order of dicom tags in RTstruct export
wahln Oct 9, 2020
95b7324
Merge branch 'dev' into rc/v2.10.1
wahln Oct 9, 2020
fb34b2b
fix test script
wahln Oct 9, 2020
3710a25
fix bug in 3D slice plotting
wahln Oct 12, 2020
a8ed4b5
fix bug in dose slice plotting
wahln Oct 12, 2020
04b0875
some fixes to dicom export to conform to dicom standard
wahln Oct 15, 2020
b6d7714
Merge branch 'dev' into rc/v2.10.1
wahln Oct 15, 2020
0505046
fix memory issue with dicom export
wahln Oct 16, 2020
522aa4f
Merge branch 'dev' into rc/v2.10.1
wahln Oct 16, 2020
cb12efa
Update matRad_OptimizationProblem.m
wahln Oct 16, 2020
5b73a5d
Update matRad_constraintFunctions.m
wahln Oct 16, 2020
bcdab65
Update matRad_OptimizationProblemDAO.m
wahln Oct 16, 2020
dccb657
Merge branch 'dev' into dev_improveDocs
wahln Oct 16, 2020
41667b3
documentation - updated first line
palkma Oct 19, 2020
38518d4
documentation - updated first line
palkma Oct 19, 2020
dee6cba
documentation - improved first line
palkma Oct 19, 2020
2ac0946
improve README.md
wahln Oct 20, 2020
480e148
Merge branch 'dev' into rc/v2.10.1
wahln Oct 20, 2020
99ffcc9
change to the testing script
wahln Oct 20, 2020
4460ef2
Merge branch 'dev' into rc/v2.10.1
wahln Oct 20, 2020
97e3a2b
add badges
wahln Oct 20, 2020
9457e69
merge new dev and some documentation fixes
palkma Oct 21, 2020
2f2c377
Merge branch 'dev' of https://github.com/e0404/matRad into dev_improv…
palkma Oct 21, 2020
589202d
Merge branch 'dev_improveDocs' of https://github.com/palkma/matRad in…
palkma Oct 21, 2020
7f42d75
remove hardcoded penumbra width in photon dose calculation and add va…
wahln Oct 23, 2020
942ce8d
add gaussian virtual source to photon mc
wahln Oct 23, 2020
d66a198
recompiled linux files
wahln Oct 23, 2020
8372294
mexed new omc for windows
wahln Oct 23, 2020
f8b944a
update ompMC submodule
wahln Oct 23, 2020
43a10de
new linux mex file
wahln Oct 23, 2020
23c14c1
fix error display if mex file invalid
wahln Oct 23, 2020
6fff2cb
new line in compareDose function
wahln Oct 23, 2020
81aec44
Merge branch 'dev' into rc/v2.10.1
wahln Oct 23, 2020
0a3ae33
new mex file compiled on ubuntu 18.04
wahln Oct 23, 2020
b30f7ae
update octave mex file for linux (compiled with ubuntu 18.04)
wahln Oct 23, 2020
a630360
homebrew caching for travis on osx
wahln Oct 23, 2020
2b64f97
avoid error when no TARGET present in data loading
wahln Oct 23, 2020
160d506
cache windows octave installation
wahln Oct 23, 2020
5c1f786
cache per operating system
wahln Oct 23, 2020
fe29d01
Merge pull request #447 from palkma/dev_improveDocs
wahln Oct 28, 2020
de277fe
Merge branch 'dev' of https://github.com/e0404/matRad into dev
wahln Oct 28, 2020
fa0cf44
Merge remote-tracking branch 'origin/master' into dev
wahln Oct 28, 2020
e01a5dc
Merge branch 'dev' into rc/v2.10.1
wahln Oct 28, 2020
99e6a3a
3D view now shows new gantry angles when pln is changed and old stf e…
wahln Oct 30, 2020
a0564e7
Merge pull request #457 from wahln/dev_fixAngles3Dview
wahln Oct 30, 2020
c3e4701
travis only notifies for builds on e0404
wahln Nov 3, 2020
5059aed
update mac mex files
wahln Nov 4, 2020
161dfd3
Merge remote-tracking branch 'origin/master' into dev
wahln Nov 4, 2020
0d6c712
Add Pull-Request Templates
wahln Nov 4, 2020
16a0c97
Updates to travisCI
wahln Nov 4, 2020
dd82f1f
another travisCI test for working under windows
wahln Nov 4, 2020
b5d7c39
update Matlab mac mex file for ompMC
wahln Nov 4, 2020
8852646
Merge branch 'dev' into dev_ompMC
wahln Nov 5, 2020
df2da63
Merge pull request #460 from wahln/dev_ompMC
wahln Nov 5, 2020
8c11f04
Merge remote-tracking branch 'origin/dev' into rc/v2.10.1
wahln Nov 5, 2020
1f32d39
update to changelog and fix documentation in compareDose
wahln Nov 5, 2020
8910424
Update Readme
wahln Nov 5, 2020
bd891b6
update readme (Zenodo DOIs) [skip ci]
wahln Nov 5, 2020
b13b4e1
Change version number
wahln Nov 5, 2020
55c0ba5
fix indicator interface
wahln Nov 9, 2020
cacbada
Merge branch 'dev' into rc/v2.10.1
wahln Nov 9, 2020
2ff35f9
fixing issues with setting "field" for bixel Width in GUI (Github Iss…
wahln Nov 9, 2020
5636d92
Better checking of weight vectors when triggering recalc from GUI (fi…
wahln Nov 9, 2020
ac6eda2
remove ALDERSON phantom
wahln Nov 10, 2020
42ae9e4
Update of standalone prj file.
wahln Nov 10, 2020
8667d30
Configuration update
wahln Nov 10, 2020
cda4ac1
update standalone compilation
wahln Nov 10, 2020
adb1c66
fix str2double in string parsing in GUI
wahln Nov 11, 2020
c925765
fix in standalone computation
wahln Nov 19, 2020
1d2bc93
update icons
wahln Nov 20, 2020
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
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/feature_pull_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
### Bug description
Describe the new feature you want to contribute and reference respective issues if this specific enhancement was asked for.

### Approach
Describe how you implemented the feature:
- How does my feature change matRad code?
- Are there any new parameters associated with the feature that need to be documented? (maybe think about providing defaults in MatRad_Config)
- Are there external dependencies (toolboxes, mex files, etc.)?

### Open Questions and/or Concerns
Use a github checklists to adress any concerns like. e.g.
- [ ] I wasn't sure about this or that variable and if I did the correct thing with it
- [ ] I am not sure if this is compatible with the latest Matlab version
- [ ] etc.
This self-defined checklist then has to be checked before merge by reviewers and yourself.

### References
Any helpful external information (e.g. links to stackoverflow question, blogposts, external software websites, etc.)
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/release_checklist_pull_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
### Release Version
Version of new Release and Type (new major release, minor release, patch release)

### Release Checklist

- [ ] Version number changed in matRad_getVersion
- [ ] Adapted Changelog.txt
- [ ] All required mex files compiled
- [ ] Third Party libraries / scripts up to date
- [ ] Standalone(s) generated and tested
- [ ] Wiki adapted
- [ ] Optional changes to README.md
- [ ] Check license information

### References
Any references regarding new functionality etc.

107 changes: 72 additions & 35 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,102 @@
language: cpp
group: travis_latest

matrix:
jobs:
include:
# works on Precise and Trusty
- os: linux
- name: "Ubuntu Octave"
os: linux
language: cpp
dist: focal # 20.04 -> Octave 5.2
services:
- xvfb
addons:
apt:
sources:
- ubuntu-toolchain-r-test
update: true
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- os: osx
- os: windows
- gdb
- gfortran
- fonts-freefont-otf
- gnuplot-x11
- libgdcm-dev
- octave
- liboctave-dev
- name: "Ubuntu Matlab"
os: linux
language: matlab
dist: focal
- name: "OSX Octave"
os: osx
language: cpp
addons:
homebrew:
update: true
packages:
- llvm
- libomp
- gdcm
- octave
cache:
directories:
- $HOME/Library/Caches/Homebrew
- name: "Windows Octave"
os: windows
language: cpp
cache:
directories:
- $HOME/AppData/Local/Temp/chocolatey
- /C/ProgramData/chocolatey/
allow_failures:
- os: windows
- os: osx

before_install:
# Linux setup
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "Testing matRad on linux..." ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then eval "${MATRIX_EVAL}" ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo chmod +x before_install_linux.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ./before_install_linux.sh; fi
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then echo "Testing matRad on linux with Octave..." ; fi
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then sudo chmod +x .travis/before_install_linux.sh ; fi
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then sudo .travis/before_install_linux.sh; fi

# Linux Matlab Setup
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Matlab" ]]; then echo "Testing matRad on linux with Matlab..." ; fi
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Matlab" ]]; then sudo chmod +x .travis/runtests.sh ; fi
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Matlab" ]]; then sudo chmod +x MCsquare/bin/MCsquare_linux ; fi

# OSX setup
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo "Testing matRad on Mac OSX..." ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install octave > /dev/null ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install llvm > /dev/null ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libomp > /dev/null ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo chmod +x before_install_osx.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo ./before_install_osx.sh; fi
- if [[ "$TRAVIS_JOB_NAME" == "OSX Octave" ]]; then echo "Testing matRad on Mac OSX..." ; fi
- if [[ "$TRAVIS_JOB_NAME" == "OSX Octave" ]]; then sudo chmod +x .travis/before_install_osx.sh ; fi
- if [[ "$TRAVIS_JOB_NAME" == "OSX Octave" ]]; then sudo .travis/before_install_osx.sh; fi

# Windows Setup
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then echo "Testing matRad on Windows..." ; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install octave.portable ; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' ; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then bash ./before_install_win_gitbash.sh ; fi
- if [[ "$TRAVIS_JOB_NAME" == "Windows Octave" ]]; then echo "Testing matRad on Windows..." ; fi
- if [[ "$TRAVIS_JOB_NAME" == "Windows Octave" ]]; then choco install octave.portable ; fi
- if [[ "$TRAVIS_JOB_NAME" == "Windows Octave" ]]; then bash .travis/before_install_win_gitbash.sh ; fi


before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ulimit -c unlimited -S ; fi
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then ulimit -c unlimited -S ; fi


after_failure:
## Linux stack trace
# find core file
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1) ; fi
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1) ; fi
# print stack trace
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then gdb -c "$COREFILE" -ex "thread apply all bt" -ex "set pagination 0" -batch /usr/bin/octave-cli ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tail runtests.log ; fi
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then gdb -c "$COREFILE" -ex "thread apply all bt" -ex "set pagination 0" -batch /usr/bin/octave-cli ; fi
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then tail runtests.log ; fi

script:
# Linux script
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_wait 45 ./runtests.sh octave-cli ; fi
# Linux Octave script
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then travis_wait 45 .travis/runtests.sh octave-cli ; fi
# Linux Matlab script
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Matlab" ]]; then travis_wait 45 .travis/runtests.sh matlab; fi
# OSX script
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_wait 45 ./runtests.sh octave-cli ; fi
- if [[ "$TRAVIS_JOB_NAME" == "OSX Octave" ]]; then travis_wait 45 .travis/runtests.sh octave-cli ; fi
# Windows script
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then travis_wait 45 ./runtests.sh octave-cli ; fi
- if [[ "$TRAVIS_JOB_NAME" == "Windows Octave" ]]; then travis_wait 45 "cmd.exe //C RefreshEnv.cmd & .travis/runtests.sh octave-cli" ; fi

before_cache:
- if [[ "$TRAVIS_JOB_NAME" == "OSX Octave" ]]; then brew cleanup; fi

notifications:
slack: e0404:u5tBXbO6D1mEwzJuFZV0MmqJ
slack:
if: repo = e0404/matRad
rooms:
- e0404:u5tBXbO6D1mEwzJuFZV0MmqJ

9 changes: 9 additions & 0 deletions .travis/before_install_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

sudo chmod +x .travis/runtests.sh
sudo chmod +x MCsquare/bin/MCsquare_linux

mv optimization/optimizer/ipopt.m optimization/optimizer/ipopt.m.bak

octave --no-gui --eval "pkg install -forge dicom"
octave --no-gui --eval "pkg install -forge nan"
File renamed without changes.
9 changes: 9 additions & 0 deletions .travis/before_install_osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

sudo chmod +x .travis/runtests.sh
sudo chmod +x MCsquare/bin/MCsquare_mac

mv optimization/optimizer/ipopt.m optimization/optimizer/ipopt.m.bak

octave --no-gui --eval "pkg install -forge dicom"
octave --no-gui --eval "pkg install -forge nan"
File renamed without changes.
11 changes: 11 additions & 0 deletions .travis/before_install_win_gitbash.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

sudo chmod +x .travis/runtests.sh
#sudo chmod +x MCsquare/MCsquare_windows.exe

#mv optimization/optimizer/ipopt.m optimization/optimizer/ipopt.m.bak

#octave --no-gui --eval "pkg install -forge dicom"
#octave --no-gui --eval "pkg install -forge nan"

cmd.exe //C RefreshEnv.cmd
File renamed without changes.
2 changes: 1 addition & 1 deletion runtests.sh → .travis/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi
if [ -z "$Switches" ] ; then
case "$Runner" in
*matlab* )
Switches="-nodesktop -r"
Switches="-batch"
;;

*octave* )
Expand Down
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ List of all matRad developers that contributed code (alphabetical)
* Henning Mescher
* Lucas-Raphael M�ller
* Ahmad Neishabouri
* Martina Palkowitsch
* Giuseppe Pezzano
* Daniel Ramirez
* Carsten Scholz
Expand Down
19 changes: 18 additions & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
Version 2.10.0 "Blaise"
Version 2.10.1 - Patch release for "Blaise"
Release with small updates, clean-ups and bugfixes
- Bugfix in 3D view due to inconsistent angles in pln & stf
- Bugfix for using incorrect dicom UID's and wrong writing order in the dicom export
- Bugfix for weird colormap issue in plotting
- New handling of environment checking with matRad_cfg (old function is still working)
- Code documentation update
- Remove hardcoded penumbra width in photon dose calculation -> can now be stored in machine file (machine.data.penumbraFWHMatIso)
- Update to ompMC to use virtual Gaussian source (uses measured penumbra value) incld precompiled mex files
- remove useless global statements before matRad_cfg
- add blue/white/red difference map to colormaps (in the correct way)
- Updated TravisCI testing (Sped up by using pre-compiled mex interfaces and including testing with Matlab (on Ubuntu), Azure DevOps as fallback
- Github gimmicks added: Stalebot, Issue & PR Templates
- code optimization for jacobian evaluation (x10-100 speedup)
- New option pln.propDoseCalc.useGivenEqDensityCube (default false) to directly use the literal values from ct.cube and omit HU to WEQ conversion from ct.cubeHU
- New option pln.propDoseCalc.ignoreOutsideDensities (default true) to disable/enable inclusion of WEPL outside the patient contour in ray-tracing

Version 2.10.0 - "Blaise"
Second Release of matRad. Note that despite major incompatibilities with "Alan" we still chose major version number "2" to have a consistent versioning in the future.
we want to thank all new contributing authors (see AUTHORS.txt)
The new release contains:
Expand Down
3 changes: 2 additions & 1 deletion IO/matRad_importPatient.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
%
% call
% [ct,cst] = matRad_importPatient(cubeFile,maskFiles)
% [ct,cst] = matRad_importPatient(cubeFile,maskFiles, hlutFilename)
%
% input
% ctFile: path to CT file. If HLUT is not set, values are interpreted
% as HU and interpolated to ED.
% maskFiles: cell array with filenames to the masks
% if maskFiels contains a folder, all contained and
% recognized data files are treated as masks
% HLUT: optional HLUT, (n,2) array. if set to 'default', we will
% hlutFilname:(optional) HLUT, (n,2) array. if set to 'default', we will
% use a default HLUT
% output
% ct ct struct for use with matlab
Expand Down
52 changes: 26 additions & 26 deletions IO/matRad_readHLUT.m
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
function hlut = matRad_readHLUT(filename)
% matRad function to read HLUT from filename
%
% call
% hlut = matRad_readHLUT(filename)
%
% input
% filename: hlut filename
%
% output
% hlut: lookup table
%
% References
% -
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Copyright 2018 the matRad development team.
%
% This file is part of the matRad project. It is subject to the license
% terms in the LICENSE file found in the top-level directory of this
% distribution and at https://github.com/e0404/matRad/LICENSES.txt. No part
% of the matRad project, including this file, may be copied, modified,
% propagated, or distributed except according to the terms contained in the
% LICENSE file.
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% matRad function to read HLUT from filename
%
% call
% hlut = matRad_readHLUT(filename)
%
% input
% filename: hlut filename
%
% output
% hlut: lookup table
%
% References
% -
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Copyright 2018 the matRad development team.
%
% This file is part of the matRad project. It is subject to the license
% terms in the LICENSE file found in the top-level directory of this
% distribution and at https://github.com/e0404/matRad/LICENSES.txt. No part
% of the matRad project, including this file, may be copied, modified,
% propagated, or distributed except according to the terms contained in the
% LICENSE file.
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Check the extension
[~,~,ext] = fileparts(filename);
Expand Down
2 changes: 1 addition & 1 deletion IO/matRad_readNRRD.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% matRad NRRD reader
%
% call
% matRad_readNRRD(filename)
% [cube, metadata] = matRad_readNRRD(filename)
%
% input
% filename: full path to nrrd file
Expand Down
4 changes: 2 additions & 2 deletions IO/matRad_writeCube.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
% matRad wrapper for Cube export
%
% call
% matRad_writeCube(filepath,cube,meta)
% [saved_metadata] = matRad_writeCube(filepath,cube,meta)
%
% input
% filepath: full output path. needs the right extension
% to choose the appropriate writer
% cube: cube that is to be written
% datatype: MATLAB numeric datatype
% meta: meta-information in struct.
% metadata: meta-information in struct.
% Necessary fieldnames are:
% - resolution: [x y z]
% Optional:
Expand Down
2 changes: 1 addition & 1 deletion IO/matRad_writeMHA.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function matRad_writeMHA(filepath,cube,metadata)
% matRad function to write mha files
%
% call
% matRad_writeMHA(cube,metadata,filename)
% matRad_writeMHA(filepath,cube,metadata)
%
% input
% filepath: full filename (with extension)
Expand Down
2 changes: 1 addition & 1 deletion IO/matRad_writeVTK.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function matRad_writeVTK(filepath,cube,metadata)
% matRad function to write vtk cubes
%
% call
% matRad_writeVTK(cube,metadata,filename)
% matRad_writeVTK(filepath,cube,metadata)
%
% input
% filepath: full filename (with extension)
Expand Down
10 changes: 5 additions & 5 deletions MCsquare/matRad_compileMCsquareSparseReader.m
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
function matRad_compileMCsquareSparseReader(dest,sourceFolder)
% Compiles the sparse mcsquare reader as mex interface for the current
% platform
% Compiles the sparse mcsquare reader as mex interface
% for the current platform
%
% call
% matRad_compileMCsquareSparseReader()
% matRad_compileMCsquareSparseReader(dest)
% matRad_compileMCsquareSparseReader(dest,sourceFolder)
%
% input:
% dest: destination for mex file. Default: location of this
% dest: (optional) destination for mex file. Default: location of this
% file
% sourceFolder: path to folder (optional). Default: location of this
% sourceFolder: (optional) path to folder. Default: location of this
% file
%
% References
Expand All @@ -31,7 +31,7 @@ function matRad_compileMCsquareSparseReader(dest,sourceFolder)
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

global matRad_cfg;

matRad_cfg = MatRad_Config.instance();

if nargin < 1
Expand Down
Loading