Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-zero consistent black areas in stream module output #101

Open
t-sasatani opened this issue Feb 12, 2025 · 0 comments
Open

Non-zero consistent black areas in stream module output #101

t-sasatani opened this issue Feb 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@t-sasatani
Copy link
Collaborator

t-sasatani commented Feb 12, 2025

As described in #99, some videos output by the stream module have areas where the pixel values are consistent with 16 (found by @MarcelMB).

This could be the following black padding function somehow getting messed up in later stages.

mio/mio/stream_daq.py

Lines 206 to 212 in 56397e9

if data.shape[0] != expected_data_size:
# trim if too long
if data.shape[0] > expected_data_size:
data = data[0:expected_data_size]
# pad if too short
else:
data = np.pad(data, (0, expected_data_size - data.shape[0]))

Otherwise, it could be that the input data stream contains continuous 16s, some glitch in bit operation, etc. I'll look into the FPGA output binaries for this to confirm.

@t-sasatani t-sasatani changed the title Presumably padded pixels in stream_daq are not zero Non-zero consistent black areas in stream module output Feb 12, 2025
@t-sasatani t-sasatani added the bug Something isn't working label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant