-
Notifications
You must be signed in to change notification settings - Fork 199
Class based Sequencing #891
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
JenHardt
wants to merge
27
commits into
e0404:dev
Choose a base branch
from
JenHardt:dev_Sequencing
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 18 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
e867f80
first very rough draft of sequecing class with SiochiLeaf Implementation
JenHardt c4a105a
Merge branch 'dev' into dev_Sequencing
JenHardt 87ddbe3
Merge branch 'dev' into dev_Sequencing
JenHardt 3c43496
updates to sequencing
JenHardt dcb8749
continuationof sequencing
JenHardt 9331425
Merge branch 'dev' into dev_Sequencing
JenHardt bb931d3
Update ompMC
JenHardt 4bbfe0f
delete old files
JenHardt b777135
updated 3d conformal
JenHardt 68ea49a
part of class now
JenHardt cb40953
part of ion sequencer class
JenHardt f4e74e4
removed unused opt result
JenHardt 460f8ba
updated DAO example
JenHardt 5bdd747
remove unnecessary update ResultGUi
JenHardt dd36310
set fill empty Bixels to true to fix DAO issue with empty bixels
JenHardt 6e7ca5b
restore Files
JenHardt a307a62
revert files
JenHardt dc96b20
revert files
JenHardt f28cf64
updates test
JenHardt 2a138b5
fill empty bixels only for photons so not to interfer so much and upd…
JenHardt f1fca5a
changing of names
JenHardt d511408
updates of old functions
JenHardt cbbed97
merge dev branch
JenHardt aaea936
merge dev
JenHardt 5b6e8a8
octave6fix
JenHardt 8a17097
merge dev
JenHardt cc221de
Merge branch 'dev' into pr/891
wahln File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| function resultGUI = matRad_acc4dDose( dij, pln, ct, cst,resultGUI, accType) | ||
| % wrapper for the whole 4D dose calculation pipeline and calculated dose | ||
| % accumulation | ||
| % | ||
| % call | ||
| % ct = matRad_calc4dDose(ct, pln, dij, stf, cst, resultGUI) | ||
| % | ||
| % input | ||
| % ct : ct cube | ||
| % pln: matRad plan meta information struct | ||
| % dij: matRad dij struct | ||
| % stf: matRad steering information struct | ||
| % cst: matRad cst struct | ||
| % resultGUI: struct containing optimized fluence vector | ||
| % totalPhaseMatrix optional intput for totalPhaseMatrix | ||
| % accType: witch algorithim for dose accumulation | ||
| % output | ||
| % resultGUI: structure containing phase dose, RBE weighted dose, etc | ||
| % timeSequence: timing information about the irradiation | ||
| % | ||
| % 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/LICENSE.md. 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_cfg = MatRad_Config.instance(); | ||
|
|
||
| if ~isa(pln.bioModel,'matRad_BiologicalModel') | ||
| pln.bioModel = matRad_BiologicalModel.validate(pln.bioModel,pln.radiationMode); | ||
| end | ||
|
|
||
| % accumulation | ||
| resultGUI.accPhysicalDose = matRad_doseAcc(ct,resultGUI.phaseDose, cst, accType); | ||
| if isa(pln.bioModel,'matRad_ConstantRBE') | ||
|
|
||
| resultGUI.accRBExDose = matRad_doseAcc(ct,resultGUI.phaseRBExDose, cst, accType); | ||
|
|
||
| elseif isa(pln.bioModel,'matRad_LQBasedModel') | ||
|
|
||
| resultGUI.accAlphaDose = matRad_doseAcc(ct,resultGUI.phaseAlphaDose, cst,accType); | ||
| resultGUI.accSqrtBetaDose = matRad_doseAcc(ct,resultGUI.phaseSqrtBetaDose, cst, accType); | ||
|
|
||
| % only compute where we have biologically defined tissue | ||
| ix = (ax{1} ~= 0); | ||
|
|
||
| resultGUI.accEffect = resultGUI.accAlphaDose + resultGUI.accSqrtBetaDose.^2; | ||
|
|
||
| resultGUI.accRBExDose = zeros(ct.cubeDim); | ||
| resultGUI.accRBExDose(ix) = ((sqrt(ax{1}(ix).^2 + 4 .* bx{1}(ix) .* resultGUI.accEffect(ix)) - ax{1}(ix))./(2.*bx{1}(ix))); | ||
| end | ||
|
|
||
| for beamIx = 1:dij.numOfBeams | ||
| resultGUI.(['accPhysicalDose_beam', num2str(beamIx)])= matRad_doseAcc(ct,resultGUI.(['phaseDose_beam', num2str(beamIx)]), cst, accType); | ||
| if isa(pln.bioModel,'matRad_ConstantRBE') | ||
| resultGUI.(['accRBExDose_beam', num2str(beamIx)]) = matRad_doseAcc(ct,resultGUI.(['phaseRBExDose_beam', num2str(beamIx)]), cst, accType); | ||
| elseif isa(pln.bioModel,'matRad_LQBasedModel') | ||
| resultGUI.(['accAlphaDose_beam', num2str(beamIx)]) = matRad_doseAcc(ct,resultGUI.(['phaseAlphaDose_beam', num2str(beamIx)]), cst, accType); | ||
| resultGUI.(['accSqrtBetaDose_beam', num2str(beamIx)]) = matRad_doseAcc(ct,resultGUI.(['phaseAlphaDose_beam', num2str(beamIx)]), cst, accType); | ||
| resultGUI.(['accEffect_beam', num2str(beamIx)]) = resultGUI.(['accAlphaDose_beam', num2str(beamIx)]) + resultGUI.(['accSqrtBetaDose_beam', num2str(beamIx)]).^2; | ||
| resultGUI.(['accRBExDose_beam', num2str(beamIx)]){i} = zeros(ct.cubeDim); | ||
| resultGUI.(['accRBExDose_beam', num2str(beamIx)]){i} = ((sqrt(ax{i}(ix).^2 + 4 .* bx{i}(ix) .* resultGUI.(['accEffect_beam', num2str(beamIx)]){i}(ix)) - ax{i}(ix))./(2.*bx{i}(ix))); | ||
| end | ||
| end | ||
|
|
||
|
|
||
| end |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could probably still be removed?