SGimaging

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

creates a simulated transparent surface view or slice view



See Also: getprojectionimage , imstackofSGprojection

Example Illustration

 missing image of SGimaging(SG,T,d,al,pix,dims)

Syntax

[I,TI,sc]=SGimaging(SG,[T,d,al,pix,dims])

Input Parameter

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

Output Parameter

I: Image struct including cdata, 'TI', and 'sc' as fields
TI: Frame of upper left pixel
sc: scale of image

Examples


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]);




Copyright 2022-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21