Skip to content

Commit

Permalink
Faster SSE, now int16 as well as float32
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Oct 4, 2020
1 parent 20d9f00 commit 70d20ec
Show file tree
Hide file tree
Showing 35 changed files with 4,787 additions and 1,675 deletions.
13 changes: 13 additions & 0 deletions MRIcroGL.app/Contents/Resources/lut/9violet.clut
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[FLT]
min=0
max=0
[INT]
numnodes=3
[BYT]
nodeintensity0=0
nodeintensity1=128
nodeintensity2=255
[RGBA255]
nodergba0=0|0|0|0
nodergba1=128|0|128|64
nodergba2=255|0|255|128
21 changes: 21 additions & 0 deletions MRIcroGL.app/Contents/Resources/script/xstartup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import gl
gl.resetdefaults()
gl.orthoviewmm(0,0,0)
gl.loadimage('/Users/chris/V1.nii.gz')
#gl.loadimage('/Users/chris/FA.nii.gz')
#open overlay: show positive regions
#gl.overlayload('/Users/chris/V1.nii.gz')
#gl.opacity(1,50)
#
# if (layer > 0) then
# Vol1.UpdateOverlays(vols);
#str = gl.atlaslabels(1)
#print(str)
#gl.minmax(1, 4, 100)


#gl.overlayload('aal')
#

#gl.generateclusters(0)
#gl.generateclusters(0, 0.5, 32, 1, 0)
10 changes: 3 additions & 7 deletions MRIcroGL.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,15 @@
<IsPartOfProject Value="True"/>
</Unit10>
<Unit11>
<Filename Value="drawintensityfilter.pas"/>
<Filename Value="intensityfilter.pas"/>
<IsPartOfProject Value="True"/>
<ComponentName Value="DrawIntensityFilterForm"/>
<ComponentName Value="IntensityFilterForm"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="drawIntensityFilter"/>
</Unit11>
<Unit12>
<Filename Value="intensityfilter.pas"/>
<Filename Value="nifti_save.pas"/>
<IsPartOfProject Value="True"/>
<ComponentName Value="IntensityFilterForm"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
</Unit12>
</Units>
</ProjectOptions>
Expand Down
10 changes: 5 additions & 5 deletions MRIcroGL.lpr
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
program MRIcroGL;

{$mode objfpc}{$H+}
{$DEFINE UseCThreads}
{$include opts.inc} //for DEFINE FASTGZ
//{$DEFINE UseCThreads}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
{$IFDEF UNIX}{$IFDEF PARALLEL}
cthreads, //<- if parallel NIfTI
cmem, // <- http://wiki.freepascal.org/Parallel_procedures
{$ENDIF}{$ENDIF}
Expand All @@ -12,8 +13,8 @@
{$ifdef windows}Windows, {$endif}
Interfaces, // this includes the LCL widgetset
Forms, mainunit, TimedDialog, dcm2nii, drawVolume, autoroi, nifti_hdr_view,
nifti_resize, resize, crop, tiff2nifti, drawIntensityFilter,
intensityfilter;
nifti_resize, resize, crop, tiff2nifti,
intensityfilter, nifti_save;

{$R *.res}
begin
Expand All @@ -27,7 +28,6 @@
Application.CreateForm(THdrForm, HdrForm);
Application.CreateForm(TResizeForm, ResizeForm);
Application.CreateForm(TCropForm, CropForm);
Application.CreateForm(TDrawIntensityFilterForm, DrawIntensityFilterForm);
Application.CreateForm(TIntensityFilterForm, IntensityFilterForm);
//{$ifdef windows} SetDarkTheme; {$endif}
//{$IFDEF LCLGtk2}ConstrainTrackBars();{$ENDIF} //if unpatched, see https://bugs.freepascal.org/view.php?id=35861
Expand Down
Loading

0 comments on commit 70d20ec

Please sign in to comment.