Skip to content
Snippets Groups Projects
Commit 1a5c392e authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

fix add_frame()

parent 00bc1b4f
No related branches found
No related tags found
1 merge request!200python ftl-file v3
Pipeline #17220 passed
This commit is part of merge request !200. Comments created here will be created in the context of that merge request.
......@@ -106,7 +106,7 @@ class FTLStreamWriter:
if codec == ftl.codec_t.PNG:
if ftl.is_float_channel(channel):
# scaling always same (???)
data = data.astype(np.float) / 1000.0
data = (data * 1000).astype(np.uint16)
params = [cv.IMWRITE_PNG_COMPRESSION, 9]
retval, data = cv.imencode(".png", data, params)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment