fourMs / VideoAnalysis

A standalone application for creating visualizations and extract motion features from video files.
https://www.uio.no/ritmo/english/research/labs/fourms/downloads/software/VideoAnalysis/
8 stars 2 forks source link

Allow user to smooth bounding box transition #32

Open balintlaczko opened 4 years ago

balintlaczko commented 4 years ago

Even a little smoothing of what [jit.findbounds] returns can get rid of a lot of flickering.

alexarje commented 4 years ago

Yes, good point.

aleksati commented 4 years ago

I added [VA_findbounds_interpolation] to the box-image now which interpolates between median values coming from the [jit.findbounds]. This should smooth the drawing of the box rectangle pretty well. These median values are based on N-large lists of boundmin and boundmax values.

Therefore, I added a sensitivity parameter to the box-image section in the UI that specifies how large the lists are in which the median values are derived. This gets rid of a lot of flickering especially when tuning the sensitivity together with the radius and threshold parameters.

However, it might need some more finetuning. Especially to find a good default setting. Great if we can test this a bit further.

alexarje commented 4 years ago

Yes, I am struggling to find good values here. This function is not very important, I think. I implemented it for a particular project, but I haven't really used it much myself, and not sure if others have either. So I wouldn't say that it is high priority.

aleksati commented 4 years ago

Jepp, there is still some work to be done here, and I have a few things in mind. But let's not focus on this right now, as you said. Ill relabel this with a 3.0 label.