balintlaczko / VideoAnalysis

Non-realtime video analysis, exporting motiongrams and various quantitative features of movement in the video file.
https://www.uio.no/ritmo/english/research/labs/fourms/downloads/software/VideoAnalysis/
1 stars 0 forks source link

pwindow mouse tracking is slightly weird when using dstdim #40

Closed balintlaczko closed 4 years ago

balintlaczko commented 4 years ago

This problem surfaced when I implemented the cropping display's positioning based on source video's aspect ratio. The pwindow actually scales the output mouse coordinates according to the dstdim - which I did not foresee (lol, Max). The good side of this is that it seems to work well with the rest of the pipeline, (ie. the images in selected cropping rectangles don't seem to shift in aspect ratio - so far) but the bad side is that the actual rectangle isn't exactly drawn at the tip of the mouse pointer. This can be annoying when one wants to accurately crop to a very small part of the display (with only the mouse, not using the numboxes). The fix will probably involve interpreting the mouse coords based on the dstdim of the cropping pwindow.