981be1f9c455c15431308806cb1bd8b0b3aa8b6b
The previous variant calculates the delta by checking how many "image pixels" the cursor was moved, and then emit an absolute scrollbar move based on that. However, when zoomed in a single image pixel can be multiple scroll bar units. The effect was that panning a zoomed in image was very slow, giving a rubber band kind of effect. Wiggling the mouse would emit more deltas, eventually moving the image below the cursor again. This PR uses the absolute coordinates instead, which keeps the image closer to the cursor. There is still a slight rubber band effect, probably due to slight differences between painter and scroll bar positions/units. The result is that panning a zoomed in image feels less sluggish.
Description
This repository contains code for detecting heat pipes in the greenhouse as well as estimating the pose of the pipes
Languages
Jupyter Notebook
93.5%
Python
4.8%
C++
1.6%