tttrlib icon indicating copy to clipboard operation
tttrlib copied to clipboard

Correct non-linear scanners

Open tpeulen opened this issue 1 year ago • 0 comments

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.

tpeulen avatar Sep 25 '24 12:09 tpeulen