-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
412 additions
and
98 deletions.
There are no files selected for viewing
This file contains 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 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
Binary file not shown.
This file contains 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 @@ | ||
,jan,Linux,25.06.2020 11:51,file:///mnt/Data/home/jan/.config/libreoffice/4; |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains 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,13 @@ | ||
<h1>Export times to sif</h1> | ||
<HR></HR> | ||
<!-------------------> | ||
|
||
<P> | ||
Nifti files do not carry information about time, which is necessary in some processing of dynamic scans. | ||
This script exports time information from a DICOM file to a .sif file. | ||
</P> | ||
|
||
|
||
<P> | ||
Nifti files can obtain time information by importing it from a .sif file. See "Import times from sif" | ||
</P> |
This file contains 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,17 @@ | ||
<h1>Import times from sif</h1> | ||
<HR></HR> | ||
<!-------------------> | ||
|
||
<P> | ||
Nifti files do not carry information about time, which is necessary in some processing of dynamic scans. | ||
This script import time information from a .sif file. | ||
</P> | ||
|
||
|
||
|
||
|
||
<P> | ||
.sif files can be created from the original DICOM files (which carry time information), by "SCRIPTS/Matrix/Export times to sif" | ||
|
||
</P> | ||
|
This file contains 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 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 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 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,11 @@ | ||
<h1>Transparancy Edit</h1> | ||
<HR></HR> | ||
<!-------------------> | ||
<P> | ||
This value between 0-100 % sets the weight of the frontmost image. A lower value shows more of the underlying image. | ||
</P> | ||
|
||
|
||
<P> | ||
This setting is shown only if overlay images are shown. | ||
</P> |
This file contains 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 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,51 @@ | ||
StoreVariables | ||
Export | ||
|
||
|
||
|
||
timeScale = imlook4d_time'; | ||
duration = imlook4d_duration'; | ||
activity = zeros( size(imlook4d_time))'; | ||
|
||
|
||
[file,path] = uiputfile( {... | ||
'*.sif', 'Turku (blood/weight) (*.sif)' ... | ||
}, ... | ||
'Export times to sif file', 'TACT.sif'); | ||
|
||
[pathstr,name,ext] = fileparts(file); % To get extension | ||
fullPath=[path file]; | ||
|
||
% | ||
% Copied from SaveTact.m | ||
% | ||
|
||
% Simplified sif file, from one ROI | ||
|
||
|
||
% Header info | ||
scan_start_time = 'xx/xx/xxxx xx:xx:xx' | ||
number_of_frames = length(imlook4d_time); | ||
number_of_columns = 2 + size(activity,2) ; | ||
SIF_version = '1'; | ||
study_ID = 'xxxx'; | ||
isotope = 'X-XX'; | ||
|
||
if ( size(activity,2) == 1 ) | ||
activity = [ activity activity ]; % Sif seems to require 4 columns (minimum) | ||
number_of_columns = 2 + size(activity,2) ; | ||
end | ||
|
||
tactHeader=[sprintf(['%s' '\t'], scan_start_time, num2str(number_of_frames), num2str(number_of_columns), SIF_version, study_ID, isotope) ]; | ||
tactHeader=tactHeader(1:end-1); % Remove last TAB | ||
|
||
unitFactor = 1; % Do nothing | ||
try | ||
|
||
save_cellarray( num2cell([ timeScale (timeScale+duration) unitFactor*double(activity) ]), fullPath, tactHeader ); | ||
catch | ||
%disp('You selected not to save TACT curve'); | ||
end | ||
|
||
Import | ||
%ClearVariables |
This file contains 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 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 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 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 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 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 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
Binary file not shown.
Oops, something went wrong.