Skip to content

Commit

Permalink
v1
Browse files Browse the repository at this point in the history
  • Loading branch information
ChariteExpMri committed Feb 29, 2024
1 parent d9b97e7 commit 117e835
Show file tree
Hide file tree
Showing 4 changed files with 447 additions and 4 deletions.
7 changes: 6 additions & 1 deletion antver.m
Original file line number Diff line number Diff line change
Expand Up @@ -1020,8 +1020,13 @@
% generate ppt-file containing previously saved ballNstick plots (previously saved as 'v*tif')
% #gw --> access via xvol3d (GUI): ⇒ scripts/show scripts
%
% #ba 29 Feb 2024 (10:44:56)
% #k [xextractslice_aligned] #n new
% extract 2d-slice from 3D/4D-volume, preserve alignment with original file
% #gw --> access via ANT-menu: ⇒ 2D/extract slice,preserve alignment
%
%
%




Expand Down
8 changes: 7 additions & 1 deletion antver.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
## **ANTx2 Modifications**
🍎 last modification: 27 Feb 2024 (13:49:45)
🍎 last modification: 29 Feb 2024 (10:44:56)

&#8658; Respository: <a href= "https://github.com/ChariteExpMri/antx2">GitHub:github.com/ChariteExpMri/antx2</a>
&#8658; Tutorials: <a href= "https://chariteexpmri.github.io/antxdoc/">https://chariteexpmri.github.io/antxdoc/</a>
&#8658; Templates : <a href= "https://drive.google.com/drive/folders/1q5XOOVLvUYLqYsQJLqNRF7OK8fNwYhI9">googleDrive:animal templates</a>


------------------
&#x1F535; <ins>**29 Feb 2024 (10:44:56)**</ins>
__[xextractslice_aligned]__ new
extract 2d-slice from 3D/4D-volume, preserve alignment with original file
&#8618; access via ANT-menu: &#8658; 2D/extract slice,preserve alignment
<!---->
&#x1F535; <ins>**27 Feb 2024 (13:49:45)**</ins>
__[vol3dscript_ballnsticks2PPT]__ new script
generate ppt-file containing previously saved ballNstick plots (previously saved as 'v*tif')
&#8618; access via xvol3d (GUI): &#8658; scripts/show scripts

<!---->
&#x1F535; <ins>**23 Feb 2024 (13:14:33)**</ins>
__[xcoreg2D_singleSlice_arbSlice]__ new
Expand Down
22 changes: 20 additions & 2 deletions mritools/ant/ant.m
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,9 @@ function cmenuCasesCB(h, e, cmenutask,par1)
mh2 = uimenu(mh,'Label','<html><font color="black"> arbitrary single-slice 2D-registration<font color="red"><i> *different modality', 'Callback',{@menubarCB, 'call_xcoreg2D_singleSlice_arbSlice'},...
'userdata',[HSTART 'register 3D images via single-slice-pair assigned 2D-registration ' HEND '#'],'separator','off');

mh2 = uimenu(mh,'Label','<html><font color="black"> extract slice, preserve alignment<font color="blue"><i> preserve alignment with inputVolume', 'Callback',{@menubarCB, 'call_xextractslice_aligned'},...
'userdata',[HSTART 'extract single slice from 3D/4D-volume, preserve alignment with inputVolume ' HEND ' '],'separator','on');

%% ==========[menu:Allas & mask]=====================================
mh = uimenu(f,'Label','atlas+masks');

Expand Down Expand Up @@ -2024,7 +2027,9 @@ function showfunctionhelp(h,e,hm,hj,isforce)
msg=regexprep(msg,'<br>',char(10));
msg=strsplit2(msg,char(10))';
%msg=cellfun(@(a){['<html><p style="font-family:''Courier New''"> ' a]} ,msg );
msg=cellfun(@(a){[' #ka ' a repmat(' ',[1 70])]} ,msg );
%msg=cellfun(@(a){[' #ka ' a repmat(' ',[1 70])]} ,msg );
%msg=cellfun(@(a){[' #ka ' a repmat(' ',[1 70])]} ,msg );
try; msg{end+1,1}=repmat('_',[1 70]); end
msg=[lab2; msg ];
end
%uhelp(msg,1);
Expand Down Expand Up @@ -2541,7 +2546,20 @@ function showcmd(hlpfun,msg,ishyperlink)
statusMsg(1,' singleSlice 2D-reg, arbSlice'); %% [exec]
xcoreg2D_singleSlice_arbSlice(1);
statusMsg(0)


elseif strcmp(task,'call_xextractslice_aligned')
if showhelpOnly==1; %% HELP-PARSER: we need the TARGET-FUNCTION here
hlpfun='xextractslice_aligned';
return ;
end
if strcmp(u.mousekey,'right') %% [cmd]===========
hlpfun='xextractslice_aligned.m';
showcmd(hlpfun);
return
end
statusMsg(1,' extract slice (keep aligned)'); %% [exec]
xextractslice_aligned(1);
statusMsg(0)

%________________________________________________
elseif strcmp(task,'xnewproject')
Expand Down
Loading

0 comments on commit 117e835

Please sign in to comment.