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

Correct non-linear scanners #44

Open
tpeulen opened this issue Sep 25, 2024 · 0 comments
Open

Correct non-linear scanners #44

tpeulen opened this issue Sep 25, 2024 · 0 comments

Comments

@tpeulen
Copy link
Member

tpeulen commented Sep 25, 2024

Add pixel lookup to correct "bad" non-linear scanners.

Modify:

void CLSMImage:: fill(        TTTR* tttr_data,        std::vector<int> channels,        bool clear,        const std::vector<std::pair<int,int>> &micro_time_ranges)

Currently the pixel number is calculated linearly. Add option for pixel lookup.

auto pixel_nbr = (tttr_data->macro_times[event_i] - line_start_time) / pixel_duration;

Pass a lookup table (for every pixel in Image) to fill function. This allows correcting bad scanners on the edges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant