Comments (11)
Could you share some/any of your images?
Try thresholding your images before passing them in.
It would also be helpful if you could post the exact parameters you are using.
from trackpy.
3,minmass=50000 (for example), threshold=8)
https://drive.google.com/file/d/0B9-erPeWaEjGc0N4MWdYZ0NRaGc/edit?usp=sharing
The first images have one or two particles detected with no problem, but when it disappears (other tifs) I have a bunch of other particles.
Thanks
from trackpy.
I poked around a little and saved my work in this notebook.
The later images in your example are full of scattered bright spots, and many of these bright spots have a mass much higher than 50000. Given how the images appear, I don't think locate/batch is doing anything surprising. The question might be why the field of view is suddenly filled with bright spots: is your camera's sensitivity changing during the experiment? Perhaps using a higher mass cutoff, as least twice as high as 50000, or some higher threshold, would eliminate those but retain the objects you want to track.
(For you images, typical mass numbers are higher than the ones in my walkthrough example because your image are 16-bit, where the examples are 8-bit.)
from trackpy.
The value of these bright spots is at the level of background when
comparing to images with real particles. But when I only have background
they are located. If you contrast the images you'll see they will
disappear. If not I gave you bad examples.
I tried higher Mass cut but I have situations where real events are around
50000, and even then it does not detect the background spots, only when
they disappear.
Thanks for the help.
On Apr 3, 2014 9:00 AM, "Dan Allan" [email protected] wrote:
I poked around a little and saved my work in this notebookhttp://nbviewer.ipython.org/gist/anonymous/2f0b6277559ddd53608d
.The later images in your example are full of scattered bright spots, and
many of these bright spots have a mass much higher than 50000. Given how
the images appear, I don't think locate/batch is doing anything surprising.
The question might be why the field of view is suddenly filled with bright
spots: is your camera's sensitivity changing during the experiment? Perhaps
using a higher mass cutoff, as least twice as high as 50000, or some higher
threshold, would eliminate those but retain the objects you want to track.(For you images, typical mass numbers are higher than the ones in my
walkthrough example because your image are 16-bit, where the examples are
8-bit.)Reply to this email directly or view it on GitHubhttps://github.com//issues/99#issuecomment-39454077
.
from trackpy.
Ah, I think imshow
was autoscaling them, which I should have realized. I will revisit later today. This should be doable.
from trackpy.
Just to check, the features if interest are the ~100 pixel across features? Shouldn't diameter be much larger than three? I strongly suspect that this can be handled with pre-processing and that part of the problem is the range stretching step (https://github.com/soft-matter/trackpy/blob/master/trackpy/feature.py#L503) that blows up the importance of noise that survives the too-small smoothing window.
from trackpy.
And as a further comment, if you only have three features per frame and they don't move much between frames while they are fading, you might be better off just finding them when they are bright and then just computing the sum over the same window in every frame.
from trackpy.
No, those are cells. It's just auto-fluorescence. I think that there is only one feature in those first samples (x:150 y: 270 aprox.) Here's an example with 3 or 4 particles.
https://drive.google.com/file/d/0B9-erPeWaEjGeW1CaW5Dcnc0bnM/edit?usp=sharing
I uploaded that example to show you that 1 event is fine, 0 events gives a lot of results that shouldn't be there.
I do have frames with 100+ events, but I have no problem with those. I can upload it if you'd like.
from trackpy.
And about the sum. I usually have more events, and they move a lot (virus). What I do with trackpy is to track the particles and then calculate a few things at the x.y provided by trackpy.
from trackpy.
Another example:
https://drive.google.com/file/d/0B9-erPeWaEjGWnFveG5vU0RUZUE/edit?usp=sharing
from trackpy.
Ah, sorry I was making up context from looking at the very small images in Dan's notebook.
from trackpy.
Related Issues (20)
- tp.emsd TypeError: mean() got an unexpected keyword argument 'level' HOT 7
- Working on a napari-trackpy plugin HOT 1
- TST: Weird dtype switching on Windows HOT 2
- link_df_iter giving TypeError when using pd.concat?
- level keyword argument was removed in pandas>2.0 HOT 1
- Release v0.6.2 HOT 5
- Tutorial shows problem using latest pandas HOT 2
- Linking using multiple HDF5 files. HOT 1
- Use pims.as_grey instead of image[:, :, 1] in walkthrough tutorial.
- Old Python version in installation instructions
- TST: Need to replace a GitHub action
- tp.batch does not perform batch correctly (all frames output as 0) HOT 3
- Error in trackpy.emsd() function: TypeError: mean() got an unexpected keyword argument 'level' HOT 5
- `plot_traj3d` throws error
- Locate only within specific ROI HOT 2
- [Question] methods for initial estimation of `minmass` HOT 1
- [Enhancement] Allowing possibility to convert raw image to `uint16`
- [Question] How to add optional arguments in after_locate function in tp.batch HOT 1
- Release v0.6.3
- Trackpy incompatible with Numpy 2.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trackpy.