Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
eb768c32
Commit
eb768c32
authored
5 years ago
by
Sebastian Hahta
Browse files
Options
Downloads
Patches
Plain Diff
fix pose
parent
85720bea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#23115
passed
5 years ago
Stage: all
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SDK/C/include/ftl/ftl.h
+6
-7
6 additions, 7 deletions
SDK/C/include/ftl/ftl.h
SDK/Python/blender.py
+1
-1
1 addition, 1 deletion
SDK/Python/blender.py
with
7 additions
and
8 deletions
SDK/C/include/ftl/ftl.h
+
6
−
7
View file @
eb768c32
...
...
@@ -146,7 +146,7 @@ ftlError_t ftlSetConfigString(ftlStream_t stream, const char *name, const char *
* path part of a configurable URI, this is prepended with the streams internal
* URI so that this path is relative to the stream object. An example:
* `ftlSetConfigInt(stream, "sender/codec", 2);`
*
*
* The example makes the streams encoder use HEVC codec.
*/
ftlError_t
ftlSetConfigInt
(
ftlStream_t
stream
,
const
char
*
name
,
int
value
);
...
...
@@ -160,7 +160,7 @@ ftlError_t ftlSetConfigJSON(ftlStream_t stream, const char *name, const char *js
* path part of a configurable URI, this is prepended with the streams internal
* URI so that this path is relative to the stream object. An example:
* `ftlSetConfigBool(stream, "sender/lossless", false);`
*
*
* The example makes the streams encoder use lossy encoding.
*/
ftlError_t
ftlSetConfigBool
(
ftlStream_t
stream
,
const
char
*
name
,
bool
value
);
...
...
@@ -184,14 +184,14 @@ ftlError_t ftlSetConfigBool(ftlStream_t stream, const char *name, bool value);
* the pitch is assumed to be width multiplied by size of pixel in bytes. Note
* that `ftlNextFrame` must be called before calling this again for the same
* source and channel.
*
*
* @param stream As created with `ftlCreateWriteStream`
* @param sourceId Unique consecutive ID for a camera or source
* @param channel The image channel
* @param type The image format
* @param pitch Bytes per row, in case different from width x sizeof(type)
* @param data Raw image data, pitch x height bytes in size
*
*
* @return FTLERROR_OK on success
*/
ftlError_t
ftlImageWrite
(
...
...
@@ -207,7 +207,7 @@ ftlError_t ftlImageWrite(
* frames when `ftlNextFrame` is called. When reading an FTL file this is
* determined automatically. Default is 25 fps. Advised to call this only once
* before any call to `ftlNextFrame`.
*
*
* @param stream As created with `ftlCreateWriteStream`
* @param fps Frames per second of video output
*/
...
...
@@ -222,8 +222,7 @@ ftlError_t ftlNextFrame(ftlStream_t stream);
/**
* Write of 4x4 transformation matrix into the stream for a given source. The
* `data` pointer must contain 16 float values packed and in Eigen::Matrix4f
* form.
* `data` pointer must contain 16 float values in column major order.
*/
ftlError_t
ftlPoseWrite
(
ftlStream_t
stream
,
int32_t
sourceId
,
const
float
*
data
);
...
...
This diff is collapsed.
Click to expand it.
SDK/Python/blender.py
+
1
−
1
View file @
eb768c32
...
...
@@ -204,7 +204,7 @@ def render_stereo(camera, baseline=0.15):
d_max
=
max
(
np
.
max
(
depthL
),
np
.
max
(
depthR
))
pose
=
np
.
identity
(
4
,
dtype
=
np
.
float32
)
pose
[
0
:
3
,
0
:
4
]
=
get_3x4_RT_matrix_from_blender
(
camera
)
pose
=
np
.
linalg
.
inv
(
pose
.
T
)
pose
=
np
.
linalg
.
inv
(
pose
)
ftlcamera
=
get_ftl_calibration_from_blender
(
camera
.
data
,
baseline
=
baseline
,
d_max
=
d_max
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment