by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 5.2, Creation date: 2022-12-10, Last change: 2025-09-15
See Also: getprojectionimage
, imstackofSGprojection
[I,TI,sc]=SGimaging(SG,[T,d,al,pix,dims])
SG: | Solid Geometry | |
T: | View direction of target to camera | |
d: | thickness of volume | |
al: | alpha value of solid during imaging | |
pix: | pixel size of image; default is 512 x 512 | |
dims: | dimensions of the image; default is maximum |
I: | Image struct including cdata, 'TI', and 'sc' as fields | |
TI: | Frame of upper left pixel | |
sc: | scale of image |
load AIM.mat; VM=V; [AM,as]=VMresize(VM,[0.5 0.5 0.5],vs); AM(:,230:256,:)=0;
SG=SGofVMisosurface(smooth3(AM>1400),as);
SGimaging(SG,[-1 -1 1],'',1);
SGimaging(SG,[-1 -1 1],'',1,1024);
SGimaging(SG,[-1 -1 1],'',1,1024,[50 600]);