imstackofSGprojection

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Images
Introduced first in SolidGeometry 5.1, Creation date: 2021-11-17, Last change: 2025-09-15

creates projection images similar to a CT from a solid

Description

There are some changes in SG-Lib 5.4.
The image are has been increased to allow also the projection of squared objects, which have not the maximum dimension in the first plane. An Alternativ would be
to create a point cloud with all z set to z. Calculate the ToVL and
NSG=SGaddfacetcenterpoints(SG); NSG.VL(:,3)=0; NVL=unique(round(NSG.VL,1),'rows');
[R,B]=eig(cov(NVL)); R=fliplr(R), diag(sqrt(B)), SGtransR(SG,R);

See Also: VMof2Dprojections , imstackwrite , imstackread

Example Illustration

 missing image of imstackofSGprojection(SG,sz,nw,tr,

Syntax

[IS,dirnam]=imstackofSGprojection([SG,sz,nw,tr,"video"])

Input Parameter

SG: Solid Geometry; default is SGofgca
sz: size; default is 300
nw: number of images; default is 180
tr: transparency level; default is 0.4
"video": if used; a video is created for educationsal purposes

Output Parameter

IS: image stack
dirnam: name of directory on desktop

Examples


SGloadAdamEva; A=ans;
imstackofSGprojection(A); SS=ans;
whos SS




Copyright 2021-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