denisecailab / ezTrack

Free, platform independent, behavior tracking software.
GNU General Public License v3.0
118 stars 41 forks source link

Remove wire freezing analysis #42

Open LeaRoyon opened 2 years ago

LeaRoyon commented 2 years ago

Hello,

I am doing freezing analysis of animals with bilateral optogenetics implants. The system is catching as movement when the cables are moving even though the animal is freezing.

Is there a way to remove the wires in the analysis like it is done for the tracking?

Thanks Léa

ZachPenn commented 2 years ago

Are you using side-view recording?

LeaRoyon commented 2 years ago

No I am recording from the top

ZachPenn commented 2 years ago

Technically, the current method of estimating motion that the Freeze Analysis module uses is not compatible with the wire removal algorithm.

Having said that, if you are able to track the location of your animals in your videos using the Location Tracking Module than I have a potential work around that you could try. Essentially, rather than using pixels changed from frame to frame to estimate freezing, we can use the distance the animal travels from frame to frame. Please try out the Location Tracking module, using the wire removal algorithm, and see how that goes. If that works well then I'll proceed with showing you the workaround.