projectionimage

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 3.8, Creation date: 2017-04-02, Last change: 2025-09-14

returns a central projection image by using Matlabs view commands

Description

this function returns a projection image of the current gca. The projections is always done in relation to the point [0 0 0]; The target is always

It changes a lot of view parameter such as lighting shading etc.
It can be used to create virtual conebeam images

See Also: setgcapixelsize , VLprojection

Example Illustration

 missing image of projectionimage(pc,vdist,vwidth,pixel,w)

Syntax

[I,cax,pc]=projectionimage(pc,vdist,vwidth,[pixel,w])

Input Parameter

pc: camera view point
vdist: camera target point
vwidth: virtual screen width
pixel: pixel size of virtual screen
w: single angle value or list an angles; default is 0

Output Parameter

I: Image of pixel size or image stack
cax: color axis [min max]
pc: center point or list of center points

Examples


SGfigure; SGsample(17); view(-30,30);
projectionimage([0 0 -10],10,200,512,0:pi/32:2*pi-1e-3); % central beam projection
[I,ca]=projectionimage([0 0 -10],10,200,512,0:pi/32:2*pi-1e-3);
projectionimage([0 0 -100000],10,200,512); % parallel projection




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