pmknutsen / whiskertracker Goto Github PK
View Code? Open in Web Editor NEWWhisker Tracking in Matlab
License: GNU General Public License v3.0
Whisker Tracking in Matlab
License: GNU General Public License v3.0
โwt_extrapolate_position line 68:
Matlab warns that 'cubic' is not recommended and suggests usage of 'pchip'. done as Matlab suggested
Seems tracking left side whiskers is broken in current version; when tracking a right-side whisker it uses frame data on the opposite side of the head.
seems there are still issues with running WT in recent version of Matlab on 64 bit platforms.
A "quick" fix is to re-write the .mex code as pure Matlab code. This will result in a dramatic slow-down in tracking speed, but will at least provide a guaranteed fallback when these 64 bit issues arise.
Recommended fix is of course to fix the underlying issues in the mex code.
wt_graphs: line 45: findobj seems to give an empty handle object now, which is incompatible with "if". changed to: if isempty(findobj(...))
Settings for spline movement ranges (Fast and Slow in Parameters dialog) are rather esoteric at the moment and it is not clear what these parameters signify for the novice user without reading the original paper.
The parameters could instead be set interactively through the GUI with graphical feedback overlaid on the current videoframe.
Hi,
I am comparing your approach to some others for my article on limbs tracking. Although in the readme file, you have mentioned there is a limb tracking example, but I couldn't find any. Can you please direct me to the code or guide me on how I can use your code for limbs tracking?
Enable option to run head tracker as a batch job. Should be a simple change to the main menu callback. Since the initial head position does need to be set for each movie, this option assumes that tracking should start from the first known head position. If head position has not been marked in a movie, then obviously just skip that movie.
when changing Options>parameters, Apply/Done gives error:
Conversion to cell from char is not possible.
Error while evaluating UIControl Callback
System: Windows 10 Education, 64 bit (2x4 cores)
Software: Matlab R2015b 32bit
Whisker Tracker Version: d479656
Tracking of many labels is slow because labels don't seem to be removed between each frame refresh.
64-bit Matlab does not accept DLLs. All MEX code needs to be recompiled.
When tracking with background subtraction an internal MATLAB error occurs after a few frames. can be avoided if line 60 in wt_subtract_bg_frame.m is changed from:
if ~isempty(nZeroRow)
to:
if 1
forcing the program to use the average frame as background, I suppose.
System: Windows 10 Education, 64 bit (2x4 cores)
Software: Matlab R2015b 32bit
Whisker Tracker Version: d479656
Example video and settings: https://drive.google.com/file/d/0B_B6vrBbgiVMaW5sNk9JYkV3YnM/view?usp=sharing
MATLAB crash file.docx
during repositioning, "Warning: Optimization is poor. Result discarded." appears continually and repositioning does not optimize tracking as usual.
I assume SNR check uses displacement with flipped x and y offsets. Maybe only evident in rotated videos (see example).
wt_find_next_whisker.m: lines 173-176
Original:
nOld = mean(mImg(round(sub2ind(size(mImg), mAdjustPoints(:,1), mAdjustPoints(:, 2)))));
nNew = mean(mImg(round(sub2ind(size(mImg), mFullSpline(:,1), mFullSpline(:, 2)))));
iAbout = [round(sub2ind(size(mImg), mAdjustPoints(:,1), mAdjustPoints(:, 2)-2));
round(sub2ind(size(mImg), mAdjustPoints(:,1), mAdjustPoints(:, 2)+2))];
Working:
nOld = mean(mImg(round(sub2ind(size(mImg), mAdjustPoints(:,2), mAdjustPoints(:, 1)))));
nNew = mean(mImg(round(sub2ind(size(mImg), mFullSpline(:,2), mFullSpline(:, 1)))));
iAbout = [round(sub2ind(size(mImg), mAdjustPoints(:,2)-2, mAdjustPoints(:, 1)));
round(sub2ind(size(mImg), mAdjustPoints(:,2)+2, mAdjustPoints(:, 1)))];
System: Windows 10 Education, 64 bit (2x4 cores)
Software: Matlab R2015b 32bit
Whisker Tracker Version: d479656
Example video and settings: https://drive.google.com/file/d/0B_B6vrBbgiVMaW5sNk9JYkV3YnM/view?usp=sharing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.