LibCapy - mirrorballcamera

MirrorBallCamera class.

Macros:

Enumerations:

None.

Typedefs:

None.

Struct CapyMirrorBallCamera :

Struct CapyMirrorBallCamera's properties:

Image of the mirror ball (must be square and the mirror ball must fill the image)

Camera to control the view (front={0,0,1} is considered to correspond to looking toward the center of the mirror ball image)

Distortion correction factor (default: pi/2, in ]0, pi/2])

Struct CapyMirrorBallCamera's methods:

Destructor

Calculate the coordinates in the mirror ball image for that direction vector

Input argument(s):

dir: the view direction (normalised, {0,0,1} is toward the center of the mirror ball image

Output and side effect(s):

Return the position in the mirror ball image for the given direction. May return invalid position for invisible direction.

Render the view from the mirror ball given the current camera.

Input argument(s):

dims: dimensions of the result image

Output and side effect(s):

Return the rendered image.

Functions:

Create a CapyMirrorBallCamera

Input argument(s):

img: the image of the mirror ball

Output and side effect(s):

Return a CapyMirrorBallCamera

Allocate memory for a new CapyMirrorBallCamera and create it

Input argument(s):

img: the image of the mirror ball

Output and side effect(s):

Return a CapyMirrorBallCamera

Exception(s):

May raise CapyExc_MallocFailed.

Free the memory used by a CapyMirrorBallCamera* and reset '*that' to NULL

Input argument(s):

that: a pointer to the CapyMirrorBallCamera to free

2025-03-30
in LibCapy,
0 views
Copyright 2021-2025 Baillehache Pascal